vbroadcast ( u n -- v )
Factor handbook » The language » Numbers » Vector operations » Vector shuffling, packing, and unpacking

Prev:vshuffle ( v perm -- w )
Next:hlshift ( v n -- w )


Vocabulary
math.vectors

Inputs
ua SIMD array
na non-negative integer


Outputs
va SIMD array


Word description
Outputs a new SIMD array of the same type as u where every element is equal to the nth element of u.

Examples
USING: alien.c-types math.vectors math.vectors.simd prettyprint ; int-4{ 69 42 911 13 } 2 vbroadcast .
int-4{ 911 911 911 911 }


Definition


Methods