type
Matrix
mixin Matrix
Interface for matrix implementations. A matrix is a rectangular array of numbers.
methods
cofactor |
Compute the cofactor of the matrix. |
---|---|
determinant |
Compute the determinant of the matrix. |
fill |
Set every element in the matrix to the given val. |
get |
Get the element at |
inverse |
Compute the inverse of the matrix. |
isSquare |
Return true if the matrix is square. |
minus |
Computes |
mult |
Computes |
multScalar |
Computes |
numCols |
The number of columns in the matrix. |
numRows |
The number of rows in the matrix. |
plus |
Computes |
set |
Set the element at |
transpose |
Get the transpose of the matrix. |
Slot Details
cofactor
abstract Matrix cofactor()
Compute the cofactor of the matrix. The matrix must be square.
determinant
abstract Float determinant()
Compute the determinant of the matrix. The matrix must be square.
fill
get
inverse
abstract Matrix inverse()
Compute the inverse of the matrix.
isSquare
abstract Bool isSquare()
Return true if the matrix is square.
minus
mult
multScalar
numCols
abstract Int numCols()
The number of columns in the matrix.
numRows
abstract Int numRows()
The number of rows in the matrix.
plus
set
transpose
abstract Matrix transpose()
Get the transpose of the matrix.