Vector shuffling, packing, and unpacking
Factor handbook » The language » Numbers » Vector operations

Prev:Vector component- and bit-wise logic
Next:Miscellaneous vector functions


Notes
These operations are primarily meant to be used with math.vectors.simd types. The software fallbacks for types not supported by hardware will not perform well.

vshuffle ( v perm -- w )

vbroadcast ( u n -- v )

hlshift ( v n -- w )

hrshift ( v n -- w )

vmerge ( u v -- w )

(vmerge) ( u v -- h t )


See the math.vectors.conversion vocabulary for packing, unpacking, and converting vectors.