Handbook
Glossary
vshuffle-elements ( v perm -- w )
Vocabulary
math
.
vectors
Inputs
v
an
object
perm
an
object
Outputs
w
an
object
Definition
IN:
math.vectors
GENERIC#:
vshuffle-elements
1
( v perm -- w )
Methods
USING:
accessors
kernel
math.vectors
sequences.cords
sequences.cords.private
;
M:
cord
vshuffle-elements
[
[
head>>
]
[
tail>>
]
bi
]
[
split-shuffle
]
bi*
[
vshuffle2-elements
]
bi-curry@
2bi
cord-append
;
inline
USING:
kernel
math.vectors
sequences
;
M:
object
vshuffle-elements
over
length
0
pad-tail
swap
[
[
nth
]
curry
]
keep
map-as
;
inline
USING:
generic
kernel
math.vectors
math.vectors.simd
math.vectors.simd.intrinsics
math.vectors.simd.private
;
M:
simd-128
vshuffle-elements
over
simd-rep
[
(simd-vshuffle-elements)
]
[
M\
simd-128
vshuffle-elements
(call-next-method)
]
vx->v-op
;
inline