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

•n - matrix dimension (default: 300)<br />

•min - minimal value for entries <strong>of</strong> matrix (default: 0)<br />

•max - maximal value for entries <strong>of</strong> matrix (default: 10)<br />

•system - either ‘sage’ or ‘magma’ (default: ‘sage’)<br />

EXAMPLES:<br />

sage: import sage.matrix.benchmark as b<br />

sage: ts = b.nullspace_RR(100)<br />

sage: tm = b.nullspace_RR(100, system=’magma’)<br />

# optional - magma<br />

sage.matrix.benchmark.nullspace_ZZ(n=200, min=0, max=4294967296, system=’sage’)<br />

Nullspace over ZZ: Given a n+1 x n matrix over ZZ with r<strong>and</strong>om entries between min <strong>and</strong> max, compute the<br />

nullspace.<br />

INPUT:<br />

•n - matrix dimension (default: 200)<br />

•min - minimal value for entries <strong>of</strong> matrix (default: 0)<br />

•max - maximal value for entries <strong>of</strong> matrix (default: 2**32)<br />

•system - either ‘sage’ or ‘magma’ (default: ‘sage’)<br />

EXAMPLES:<br />

sage: import sage.matrix.benchmark as b<br />

sage: ts = b.nullspace_ZZ(200)<br />

sage: tm = b.nullspace_ZZ(200, system=’magma’)<br />

# optional - magma<br />

sage.matrix.benchmark.rank2_GF(n=500, p=16411, system=’sage’)<br />

Rank over GF(p): Given a (n + 10) x n matrix over GF(p) with r<strong>and</strong>om entries, compute the rank.<br />

INPUT:<br />

•n - matrix dimension (default: 300)<br />

•p - prime number (default: 16411)<br />

•system - either ‘magma’ or ‘sage’ (default: ‘sage’)<br />

EXAMPLES:<br />

sage: import sage.matrix.benchmark as b<br />

sage: ts = b.rank2_GF(500)<br />

sage: tm = b.rank2_GF(500, system=’magma’)<br />

# optional - magma<br />

sage.matrix.benchmark.rank2_ZZ(n=400, min=0, max=18446744073709551616L, system=’sage’)<br />

Rank 2 over ZZ: Given a (n + 10) x n matrix over ZZ with r<strong>and</strong>om entries between min <strong>and</strong> max, compute the<br />

rank.<br />

INPUT:<br />

•n - matrix dimension (default: 400)<br />

•min - minimal value for entries <strong>of</strong> matrix (default: 0)<br />

•max - maximal value for entries <strong>of</strong> matrix (default: 2**64)<br />

•system - either ‘sage’ or ‘magma’ (default: ‘sage’)<br />

EXAMPLES:<br />

419

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

Saved successfully!

Ooh no, something went wrong!