Abstract base class for matrices

For design documentation see matrix/docs.py.

class sage.matrix.matrix.Matrix

Bases: sage.matrix.matrix2.Matrix

EXAMPLES:

sage: import sage.matrix.matrix0
sage: A = sage.matrix.matrix0.Matrix(MatrixSpace(QQ,2))
sage: type(A)
<type 'sage.matrix.matrix0.Matrix'>
sage.matrix.matrix.is_Matrix(x)

EXAMPLES:

sage: from sage.matrix.matrix import is_Matrix
sage: is_Matrix(0)
False
sage: is_Matrix(matrix([[1,2],[3,4]]))
True

Previous topic

Matrices over an arbitrary ring

Next topic

Base class for matrices, part 0

This Page