Handbook
Glossary
zero-matrix
Matrix operations
Prev:
square-matrix
Next:
zero-square-matrix
Vocabulary
math
.
matrices
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
;
IN:
math.matrices
PREDICATE:
zero-matrix
<
matrix
dup
null-matrix?
[
drop
f
]
[
flatten
[
zero?
]
all?
]
if
;
Methods
USING:
kernel
math.matrices
math.matrices.extras
;
M:
zero-matrix
rank
drop
+zero-rank+
;
USING:
math
math.matrices
;
M:
zero-matrix
recip
transpose
;
inline