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