Handbook
Glossary
vneg ( v -- w )
Factor handbook
»
The language
»
Numbers
»
Vector operations
»
Vector arithmetic
Prev:
v^ ( u v -- w )
Next:
vabs ( v -- w )
Vocabulary
math
.
vectors
Inputs
v
a
sequence
of
number
s
Outputs
w
a
sequence
of
number
s
Word description
Negates each element of
v
.
Definition
IN:
math.vectors
GENERIC:
vneg
( v -- w )
Methods
USING:
math.vectors
sequences.cords
;
M:
cord
vneg
[
vneg
]
cord-map
;
inline
USING:
kernel
math
math.vectors
sequences
;
M:
object
vneg
[
neg
]
map
;
inline
USING:
kernel
math
math.vectors
ranges
ranges.private
;
M:
range
vneg
>range<
[
neg
]
tri@
<range>
;
USING:
generic
kernel
math.vectors
math.vectors.simd
math.vectors.simd.intrinsics
math.vectors.simd.private
;
M:
simd-128
vneg
dup
simd-rep
[
(simd-vneg)
]
[
M\
simd-128
vneg
(call-next-method)
]
v->v-op
;
inline