Handbook
Glossary
vtruncate ( v -- w )
Factor handbook
»
The language
»
Numbers
»
Vector operations
»
Vector arithmetic
Prev:
vceiling ( v -- w )
Next:
normalize ( v -- w )
Vocabulary
math
.
vectors
Inputs
v
a
sequence
of
real
s
Outputs
w
a
sequence
of
real
s
Word description
Truncates each element of
v
.
Definition
IN:
math.vectors
GENERIC:
vtruncate
( v -- w )
Methods
USING:
kernel
math.functions
math.vectors
sequences
;
M:
object
vtruncate
[
truncate
]
map
;
inline
USING:
generic
kernel
math.vectors
math.vectors.simd
math.vectors.simd.intrinsics
math.vectors.simd.private
;
M:
simd-128
vtruncate
"truncate"
over
simd-rep
[
(simd-unary)
]
[
M\
simd-128
vtruncate
(call-next-method)
]
vx->v-op
;
inline