Handbook
Glossary
v- ( u v -- w )
Factor handbook
»
The language
»
Numbers
»
Vector operations
»
Vector arithmetic
Prev:
v+ ( u v -- w )
Next:
v+- ( u v -- w )
Vocabulary
math
.
vectors
Inputs
u
a
sequence
of
number
s
v
a
sequence
of
number
s
Outputs
w
a
sequence
of
number
s
Word description
Subtracts
v
from
u
component-wise.
See also
2map
,
v+
,
v*
,
v/
Definition
IN:
math.vectors
GENERIC:
v-
( u v -- w )
Methods
USING:
generic
math.vectors
sequences.cords
;
M:
cord
v-
[
v-
]
[
M\
cord
v-
(call-next-method)
]
cord-2map
;
inline
USING:
kernel
math
math.vectors
sequences
;
M:
object
v-
[
-
]
2map
;
inline
USING:
kernel
math
math.vectors
ranges
ranges.private
;
M:
range
v-
>range<
[
neg
]
tri@
<range>
v+
;
USING:
generic
kernel
math.vectors
math.vectors.simd
math.vectors.simd.intrinsics
math.vectors.simd.private
;
M:
simd-128
v-
dup
simd-rep
[
(simd-v-)
]
[
M\
simd-128
v-
(call-next-method)
]
vv->v-op
;
inline