square-matrix - Factor Documentation (original) (raw)
square-matrix
Matrix operations
Prev: | irregular-matrix |
---|---|
Next: | zero-matrix |
Class description
The class of square matrices. A square matrix is a matrix which has the same number of rows and columns. In other words, its outermost two dimensions are of equal size.
See also
matrix, irregular-matrix, zero-matrix, null-matrix, zero-square-matrix, null-matrix
Definition
USING: kernel sequences.private ;
PREDICATE: square-matrix < matrix dimension first2-unsafe = ;
Methods
USING: kernel math.matrices math.matrices.extras
math.matrices.extras.private sequences ;
M: square-matrix determinant [ length ] keep (determinant) ;
USING: math.matrices math.matrices.extras
math.matrices.extras.private ;
M: square-matrix rank square-rank ;