Handbook
Glossary
(vdot4+) ( a b accumulator -- result )
Vocabulary
math
.
vectors
.
simd
.
extensions
Inputs
a
an
object
b
an
object
accumulator
an
object
Outputs
result
an
object
Definition
USING:
system
;
IN:
math.vectors.simd.extensions
HOOK:
(vdot4+)
cpu
( a b accumulator -- result )
Methods
USING:
kernel
math
math.vectors.simd.extensions
sequences
;
M::
object
(vdot4+)
( a b accumulator -- result )
4
<iota>
[|
lane |
lane accumulator
nth
4
<iota>
swap
[|
value j |
lane 4
*
j
+
:>
index index a
nth
index b
nth
*
value
+
]
reduce
]
accumulator
map-as
;