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