Handbook
Glossary
zero-matrix? ( object -- ? )
Matrix operations
Prev:
square-matrix? ( object -- ? )
Next:
zero-square-matrix? ( object -- ? )
Vocabulary
math
.
matrices
Inputs and outputs
object
an
object
?
a
boolean
Word description
Tests if the object is an instance of the
zero-matrix
class.
Definition
USING:
kernel
math
sequences
sequences.deep
;
IN:
math.matrices
:
zero-matrix?
( object -- ? )
dup
matrix?
[
dup
null-matrix?
[
drop
f
]
[
flatten
[
zero?
]
all?
]
if
]
[
drop
f
]
if
;