powered by
Turns the tensor into a single vector, following the convention that earlier indices vary slower than later indices.
vec(tnsr)# S4 method for Tensor vec(tnsr)
# S4 method for Tensor vec(tnsr)
the Tensor instance
vector with length prod(x@modes)
prod(x@modes)
vec(tnsr)
T. Kolda, B. Bader, "Tensor decomposition and applications". SIAM Applied Mathematics and Applications 2009.
# NOT RUN { tnsr <- rand_tensor(c(4,5,6,7)) vec(tnsr) # }
Run the code above in your browser using DataLab