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 />

value <strong>of</strong> upper_bound, <strong>and</strong> the echelon form <strong>of</strong> the matrix also has integer entries. Other exact rings may<br />

be also specified, but there is no notion <strong>of</strong> controlling the size. Square matrices <strong>of</strong> full rank generated by this<br />

function always have determinant one, <strong>and</strong> can be constructed with the unimodular keyword.<br />

sage: A=r<strong>and</strong>om_matrix(QQ, 4, 8, algorithm=’echelonizable’, rank=3, upper_bound=60); A # r<strong>and</strong>om<br />

sage: A.base_ring()<br />

Rational Field<br />

sage: (A.nrows(), A.ncols())<br />

(4, 8)<br />

sage: A in sage.matrix.matrix_space.MatrixSpace(ZZ, 4, 8)<br />

True<br />

sage: A.rank()<br />

3<br />

sage: all([abs(x)

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

Saved successfully!

Ooh no, something went wrong!