Handbook
Glossary
vavg ( u v -- w )
Vocabulary
math
.
vectors
Inputs
u
an
object
v
an
object
Outputs
w
an
object
Definition
IN:
math.vectors
GENERIC:
vavg
( u v -- w )
Methods
USING:
kernel
math
math.vectors
sequences
;
M:
object
vavg
[
+
2
/
]
2map
;
inline
USING:
generic
kernel
math.vectors
ranges
;
M:
range
vavg
over
range?
[
v+
2
v/n
]
[
M\
range
vavg
(call-next-method)
]
if
;
USING:
generic
kernel
math.vectors
math.vectors.simd
math.vectors.simd.intrinsics
math.vectors.simd.private
;
M:
simd-128
vavg
dup
simd-rep
[
(simd-vavg)
]
[
M\
simd-128
vavg
(call-next-method)
]
vv->v-op
;
inline