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

SEVENTEEN<br />

DENSE MATRICES OVER THE INTEGER<br />

RING<br />

Dense matrices over the integer ring<br />

AUTHORS:<br />

• William Stein<br />

• Robert Bradshaw<br />

EXAMPLES:<br />

sage: a = matrix(ZZ, 3,3, range(9)); a<br />

[0 1 2]<br />

[3 4 5]<br />

[6 7 8]<br />

sage: a.det()<br />

0<br />

sage: a[0,0] = 10; a.det()<br />

-30<br />

sage: a.charpoly()<br />

x^3 - 22*x^2 + 102*x + 30<br />

sage: b = -3*a<br />

sage: a == b<br />

False<br />

sage: b < a<br />

True<br />

TESTS:<br />

sage: a = matrix(ZZ,2,range(4), sparse=False)<br />

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

sage: Matrix(ZZ,0,0).inverse()<br />

[]<br />

class sage.matrix.matrix_integer_dense.Matrix_integer_dense<br />

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

Matrix over the integers.<br />

On a 32-bit machine, they can have at most 2 32 − 1 rows or columns. On a 64-bit machine, matrices can have<br />

at most 2 64 − 1 rows or columns.<br />

EXAMPLES:<br />

313

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

Saved successfully!

Ooh no, something went wrong!