Handbook
Glossary
arange ( a b step -- tensor )
Tensors
ยป
Creating Tensors
Prev:
naturals ( shape -- tensor )
Next:
(tensor) ( shape -- tensor )
Vocabulary
tensors
Inputs
a
a
number
b
a
number
step
a
number
Outputs
tensor
a
tensor
Word description
Initializes a one-dimensional tensor with values in a range from
a
to
b
(inclusive) with step-size
step
.
Definition
USING:
arrays
kernel
math
ranges
sequences
tensors.private
;
IN:
tensors
:
arange
( a b step -- tensor )
<range>
[
length
>fixnum
1array
]
keep
>float-array
<tensor>
;