matfuns.spad line 1 [edit on github]
InnerMatrixLinearAlgebraFunctions is an internal package which provides standard linear algebra functions on domains in MatrixCategory
determinant(m)
returns the determinant of the matrix m
. an error message is returned if the matrix is not square.
generalizedInverse(m)
returns the generalized (Moore--Penrose) inverse of the matrix m
, i.e. the matrix h
such that m*h*m=h, h*m*h=m, m*h
and h*m
are both symmetric matrices.
inverse(m)
returns the inverse of the matrix m
. If the matrix is not invertible, "failed" is returned. Error: if the matrix is not square.
nullSpace(m)
returns a basis for the null space of the matrix m
.
nullity(m)
returns the mullity of the matrix m
. This is the dimension of the null space of the matrix m
.
rank(m)
returns the rank of the matrix m
.
rowEchelon(m)
returns the row echelon form of the matrix m
.
row_operation_base should
be local, but conditional
row_operation_modular should
be local, but conditional