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

EXAMPLES: We create a matrix, compute its transpose, <strong>and</strong> note that the original matrix is not changed.<br />

sage: M = MatrixSpace(QQ,<br />

sage: A = M([1,2,3,4])<br />

sage: B = A.transpose()<br />

sage: print B<br />

[1 3]<br />

[2 4]<br />

sage: print A<br />

[1 2]<br />

[3 4]<br />

2, sparse=True)<br />

.T is a convenient shortcut for the transpose:<br />

sage: A.T<br />

[1 3]<br />

[2 4]<br />

287

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

Saved successfully!

Ooh no, something went wrong!