The inverse operation to matvec-methods, turning a matrix into a Tensor. For a full account of matrix folding/unfolding operations, consult Kolda and Bader (2009).
Usage
unmatvec(mat, modes = NULL)
Arguments
mat
matrix to be folded into a Tensor
modes
the modes of the output Tensor
Value
Tensor object with modes given by modes
References
T. Kolda, B. Bader, "Tensor decomposition and applications". SIAM Applied Mathematics and Applications 2009.