08.02.2015 Views

Sage Reference Manual: Matrices and Spaces of Matrices - Mirrors

Sage Reference Manual: Matrices and Spaces of Matrices - Mirrors

Sage Reference Manual: Matrices and Spaces of Matrices - Mirrors

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Sage</strong> <strong>Reference</strong> <strong>Manual</strong>: <strong>Matrices</strong> <strong>and</strong> <strong>Spaces</strong> <strong>of</strong> <strong>Matrices</strong>, Release 6.1.1<br />

INPUT:<br />

•n - matrix dimension (default: 200)<br />

•min - minimal value for entries <strong>of</strong> matrix (default: 1)<br />

•max - maximal value for entries <strong>of</strong> matrix (default: 100)<br />

•system - either ‘sage’ or ‘magma’ (default: ‘sage’)<br />

EXAMPLES:<br />

sage: import sage.matrix.benchmark as b<br />

sage: ts = b.det_ZZ(200)<br />

sage: tm = b.det_ZZ(200, system=’magma’)<br />

# optional - magma<br />

sage.matrix.benchmark.det_hilbert_QQ(n=80, system=’sage’)<br />

Runs the benchmark for calculating the determinant <strong>of</strong> the hilbert matrix over rationals <strong>of</strong> dimension n.<br />

INPUT:<br />

•n - matrix dimension (default: 300)<br />

•system - either ‘sage’ or ‘magma’ (default: ‘sage’)<br />

EXAMPLES:<br />

sage: import sage.matrix.benchmark as b<br />

sage: ts = b.det_hilbert_QQ(50)<br />

sage: tm = b.det_hilbert_QQ(50, system=’magma’)<br />

# optional - magma<br />

sage.matrix.benchmark.echelon_QQ(n=100, min=0, max=9, system=’sage’)<br />

Given a n x (2*n) matrix over QQ with r<strong>and</strong>om integer entries between min <strong>and</strong> max, compute the reduced row<br />

echelon form.<br />

INPUT:<br />

•n - matrix dimension (default: 300)<br />

•min - minimal value for entries <strong>of</strong> matrix (default: -9)<br />

•max - maximal value for entries <strong>of</strong> matrix (default: 9)<br />

•system - either ‘sage’ or ‘magma’ (default: ‘sage’)<br />

EXAMPLES:<br />

sage: import sage.matrix.benchmark as b<br />

sage: ts = b.echelon_QQ(100)<br />

sage: tm = b.echelon_QQ(100, system=’magma’)<br />

# optional - magma<br />

sage.matrix.benchmark.hilbert_matrix(n)<br />

Returns the Hilbert matrix <strong>of</strong> size n over rationals.<br />

EXAMPLES:<br />

sage: import sage.matrix.benchmark as b<br />

sage: b.hilbert_matrix(3)<br />

[ 1 1/2 1/3]<br />

[1/2 1/3 1/4]<br />

[1/3 1/4 1/5]<br />

sage.matrix.benchmark.inverse_QQ(n=100, min=0, max=9, system=’sage’)<br />

Given a n x n matrix over QQ with r<strong>and</strong>om integer entries between min <strong>and</strong> max, compute the reduced row<br />

echelon form.<br />

415

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!