Handbook
Glossary
vround ( v -- w )
Vocabulary
math
.
vectors
Inputs
v
a
sequence
Outputs
w
a
sequence
Word description
Rounds each lane to the nearest integer, with halfway cases rounded away from zero.
Definition
IN:
math.vectors
GENERIC:
vround
( v -- w )
Methods
USING:
kernel
math.functions
math.vectors
sequences
;
M:
object
vround
[
round
]
map
;
inline
USING:
generic
kernel
math.vectors
math.vectors.simd
math.vectors.simd.intrinsics
math.vectors.simd.private
;
M:
simd-128
vround
"round"
over
simd-rep
[
(simd-unary)
]
[
M\
simd-128
vround
(call-next-method)
]
vx->v-op
;
inline