zero-matrix - Factor Documentation (original) (raw)
Prev: | square-matrix |
---|---|
Next: | zero-square-matrix |
Class description
The class of zero matrices. A zero matrix is a matrix whose only elements are the scalar 0.
Notes
In mathematics, a zero-filled matrix is called a null matrix. In Factor, a null-matrix is an empty matrix.
See also
matrix, irregular-matrix, square-matrix, null-matrix, zero-square-matrix, null-matrix
Definition
USING: kernel math sequences sequences.deep ;
PREDICATE: zero-matrix < matrix
dup null-matrix? [ drop f ] [ flatten [ zero? ] all? ] if ;
Methods
USING: kernel math.matrices math.matrices.extras ;