MatrixSpace(R, n, m)
of all
To create a matrix, either use the matrix(...)
function or
create a matrix space using the MatrixSpace
command and coerce
an object into it.
Matrices also act on row vectors, which you create using the
vector(...)
command or by making a VectorSpace
and
coercing lists into it. The natural action of matrices on row vectors
is from the right. SAGE currently does not have a column vector class
(on which matrices would act from the left), but this is planned.
In addition to native SAGE matrices, SAGE also includes the following additional ways to compute with matrices:
sage/matrix/matrix_real_double_dense.py
for example
code that does this.
scipy
module provides support for sparse
numerical linear algebra, among many other things.
numpy
module, which you load by typing import numpy
is included standard with SAGE. It contains a very sophisticated and well
developed array class, plus optimized support for numerical linear algebra.
Unfortunately the numpy documentation is only available for purchase.
See About this document... for information on suggesting changes.