Handbook
Glossary
Creating Tensors
Tensors
Next:
Manipulating Tensors
Tensors can be created by calling one of following constructors:
zeros
( shape -- tensor )
ones
( shape -- tensor )
naturals
( shape -- tensor )
arange
( a b step -- tensor )
(tensor)
( shape -- tensor )
They can be converted to/from the corresponding N-dimensional array with
tensor>array
( tensor: tensor -- seq: array )
>tensor
( seq -- tensor )
There is also a tensor parsing word
t{