Handbook
Glossary
matrix? ( object -- ? )
Matrix operations
Prev:
null-matrix
Next:
irregular-matrix? ( object -- ? )
Vocabulary
math
.
matrices
Inputs and outputs
object
an
object
?
a
boolean
Word description
Tests if the object is an instance of the
matrix
class.
Definition
USING:
combinators.short-circuit
kernel
sequences
;
IN:
math.matrices
:
matrix?
( object -- ? )
dup
sequence?
[
{
[
[
sequence?
]
all?
]
[
regular-matrix?
]
}
1&&
]
[
drop
f
]
if
;