nzmath.matrix

SquareMatrix

The class is for square matrix. It is a subclass of Matrix.

Constructor

SquareMatrix(row, compo)

SquareMatrix(row, column, compo)

row and column must be a positive integer, and assuming row must be equal to column.
compo must be a list form.

In general, given matrix size unspecified, you should call createMatrix for your profit.

Methods

getRing()

isDiagonalMatrix()

isScalarMatrix()

isSymmetricMatrix()

isOrthogonalMatrix()

isAlternateMatrix()

commutator(N)

Return commutator defined as [M, N] = M * N - N * M .

trace()

determinant()

cofactors()

inverse()

characteristicPolynomial()

LUDecomposition()

return L and U s.t. M == L * U:

hessenbergForm()

Operators

operatorexplanation
M ** cReturn the c-th power of matrices M.

Last-modified: 2006-08-08 (Ва) 14:29:34