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.matrix.benchmark.matrix_multiply_ZZ(n=300, min=-9, max=9, system=’sage’,<br />

times=1)<br />

Matrix multiplication over ZZ Given an n x n matrix A over ZZ with r<strong>and</strong>om entries between min <strong>and</strong> max,<br />

inclusive, compute A * (A+1).<br />

INPUT:<br />

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

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

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

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

•times - number <strong>of</strong> experiments (default: 1)<br />

EXAMPLES:<br />

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

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

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

# optional - magma<br />

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

Given a n+1 x n matrix over GF(p) with r<strong>and</strong>om entries, compute the nullspace.<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.nullspace_GF(300)<br />

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

# optional - magma<br />

sage.matrix.benchmark.nullspace_RDF(n=300, min=0, max=10, system=’sage’)<br />

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

nullspace.<br />

INPUT:<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_RDF(100) # long time<br />

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

# optional - magma<br />

sage.matrix.benchmark.nullspace_RR(n=300, min=0, max=10, system=’sage’)<br />

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

nullspace.<br />

INPUT:<br />

418 Chapter 24. Benchmarks for matrices

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

Saved successfully!

Ooh no, something went wrong!