Handbook
Glossary
v+n ( v n -- w )
Factor handbook
»
The language
»
Numbers
»
Vector operations
»
Vector arithmetic
Prev:
n/v ( n v -- w )
Next:
n+v ( n v -- w )
Vocabulary
math
.
vectors
Inputs
v
a
sequence
of
number
s
n
a
number
Outputs
w
a
sequence
of
number
s
Word description
Adds
n
to each element of
v
.
Definition
IN:
math.vectors
GENERIC#:
v+n
1
( v n -- w )
Methods
USING:
kernel
math.vectors
sequences.cords
;
M:
cord
v+n
[
v+n
]
curry
cord-map
;
inline
USING:
kernel
math
math.vectors
sequences
;
M:
object
v+n
[
+
]
curry
map
;
inline
USING:
kernel
math
math.vectors
ranges
ranges.private
;
M:
range
v+n
[
>range<
]
dip
[
+
]
curry
[
bi@
]
curry
dip
<range>
;
USING:
kernel
math.vectors
math.vectors.simd
;
M:
simd-128
v+n
over
simd-with
v+
;
inline