unmatvec-methods | R Documentation |
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).
unmatvec(mat, modes = NULL)
## S4 method for signature 'DelayedArray'
unmatvec(mat, modes)
mat |
DelayedArray object (only 2D) |
modes |
the modes of the output DelayedArray |
This function is an extension of the unmatvec
by DelayedArray.
This is a wrapper function to fold
.
DelayedArray object with modes given by modes
T. Kolda, B. Bader, "Tensor decomposition and applications". SIAM Applied Mathematics and Applications 2009.
fold
, matvec
library("DelayedRandomArray")
darr <- RandomUnifArray(c(2,3,4))
matT1 <- matvec(darr)
identical(
as.array(unmatvec(matT1, modes=c(2,3,4))),
as.array(darr))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.