v= ( u v -- w )
Factor documentation > Factor handbook > The language > Numbers > Vector operations > Vector component- and bit-wise logic
Prev:v<= ( u v -- w )
Next:v>= ( u v -- w )


Vocabulary
math.vectors

Inputs and outputs
ua sequence of numbers
va sequence of numbers
wa sequence of booleans


Word description
Compares each corresponding element of u and v, returning t in the result vector when they are equal or f otherwise.

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

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

Definition
IN: math.vectors

GENERIC: v= ( u v -- w )


Methods
USING: generic math.vectors sequences.cords ;

M: cord v=
[ v= ] [ M\ cord v= (call-next-method) ] cord-2map ; inline


USING: kernel math.vectors sequences ;

M: object v= [ = ] 2map ; inline


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

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