mat returns a matrix version of a provided tensor.
An array to be unfolded.
The mode, or dimension, along which the unfolding is to be applied.
Applies the matrix unfolding operator (also called 'matricization' or 'matrix flattening' operator) on a provided tensor. There are multiple ways one could do this. This function performs the matrix unfolding described in Kolda and Bader (2009).
A matrix whose rows index the kth mode and whose columns index every other mode. The ordering of the columns is in lexicographical order of the indices of the array A.
Kolda, T. G., & Bader, B. W. (2009). Tensor decompositions and applications. SIAM review, 51(3), 455-500.
1 2 3 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.