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

Given an n x n matrix A over ZZ with r<strong>and</strong>om entries between min <strong>and</strong> max, inclusive, <strong>and</strong> v the first row <strong>of</strong> A,<br />

compute the product v * A.<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> runs (default: 200)<br />

EXAMPLES:<br />

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

sage: ts = b.vecmat_ZZ(300) # long time<br />

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

# optional - magma<br />

422 Chapter 24. Benchmarks for matrices

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

Saved successfully!

Ooh no, something went wrong!