Description Usage Arguments Details Value References Examples
Turns the tensor into a single vector, following the convention that earlier indices vary slower than later indices.
1 2 3 4 |
tnsr |
the Tensor instance |
vec(tnsr)
vector with length prod(x@modes)
T. Kolda, B. Bader, "Tensor decomposition and applications". SIAM Applied Mathematics and Applications 2009.
1 2 | tnsr <- rand_tensor(c(4,5,6,7))
vec(tnsr)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.