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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

sage: b.echelonize(); b<br />

[ 1 0 36]<br />

[ 0 1 2]<br />

sage: a.pivots()<br />

(0, 1)<br />

sage: b.pivots()<br />

(0, 1)<br />

sage: a.rank()<br />

2<br />

sage: b.rank()<br />

2<br />

sage: a[2,2] = 5<br />

sage: a.rank()<br />

3<br />

TESTS: sage: matrix(Integers(37),0,0,sparse=True).inverse() []<br />

class sage.matrix.matrix_modn_sparse.Matrix_modn_sparse<br />

Bases: sage.matrix.matrix_sparse.Matrix_sparse<br />

Create a sparse matrix modulo n.<br />

INPUT:<br />

•parent - a matrix space<br />

•entries<br />

–a Python list <strong>of</strong> triples (i,j,x), where 0

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

Saved successfully!

Ooh no, something went wrong!