Creates a tensor with all entries one.
one.tensor(d=NULL,dn=NULL)
A tensor with dim d and all elements one
the dimensions of the new tensor
the dimnames of the new tensor
K. Gerald van den Boogaart
$$E_{i_1\ldots i_n}=1$$
to.tensor
one.tensor(c(a=3,b=3,c=3))
Run the code above in your browser using DataLab