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.

CHAPTER<br />

TWELVE<br />

DENSE MATRICES OVER A GENERAL<br />

RING<br />

Dense <strong>Matrices</strong> over a general ring<br />

class sage.matrix.matrix_generic_dense.Matrix_generic_dense<br />

Bases: sage.matrix.matrix_dense.Matrix_dense<br />

The Matrix_generic_dense class derives from Matrix, <strong>and</strong> defines functionality for dense matrices<br />

over any base ring. <strong>Matrices</strong> are represented by a list <strong>of</strong> elements in the base ring, <strong>and</strong> element access operations<br />

are implemented in this class.<br />

EXAMPLES:<br />

sage: A = r<strong>and</strong>om_matrix(Integers(25)[’x’],2); A<br />

[ x^2 + 12*x + 2 4*x^2 + 13*x + 8]<br />

[ 22*x^2 + 2*x + 17 19*x^2 + 22*x + 14]<br />

sage: type(A)<br />

<br />

sage: TestSuite(A).run()<br />

289

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

Saved successfully!

Ooh no, something went wrong!