zero-matrix? ( object -- ? ) - Factor Documentation

zero-matrix? ( object -- ? )
Matrix operations



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 ;

AltStyle によって変換されたページ (->オリジナル) /