Vocabularymath.
vectorsInputsOutputsWord descriptionCreates two new sequences of the same type and size as
u and
v by interleaving the elements of
u and
v.
NotesFor hardware-supported SIMD vector types this word compiles to a single instruction per output value.
ExamplesUSING: kernel math.vectors prettyprint ;
{ "A" "B" "C" "D" } { "1" "2" "3" "4" } (vmerge) [ . ] bi@
{ "A" "1" "B" "2" }
{ "C" "3" "D" "4" }
See alsovmerge,
(vmerge-head),
(vmerge-tail)Definition