vall? ( v -- ? )
Factor documentation > Factor handbook > The language > Numbers > Vector operations > Vector component- and bit-wise logic
Prev:vif ( mask true-quot: ( -- vector ) false-quot: ( -- vector ) -- result )
Next:vany? ( v -- ? )


Vocabulary
math.vectors

Inputs and outputs
va sequence of booleans
?a boolean


Word description
Returns true if every element of v is true.

Notes
See Componentwise logic with SIMD vectors for notes on dealing with vector boolean inputs when using SIMD types.

See also
v<, v<=, v=, v>, v>=, vunordered?, vand, vor, vxor, vnot, vany?, vnone?, v?

Definition
IN: math.vectors

GENERIC: vall? ( v -- ? )


Methods
USING: kernel math.vectors sequences.cords ;

M: cord vall? [ vall? ] cord-both and ; inline


USING: kernel math.vectors sequences ;

M: object vall? [ ] all? ; inline


USING: generic kernel math.vectors math.vectors.simd
math.vectors.simd.intrinsics math.vectors.simd.private ;

M: simd-128 vall?
dup simd-rep
[ (simd-vall?) ] [ M\ simd-128 vall? (call-next-method) ]
v->x-op ; inline