The inverse operation to
cs_fold(mat, m = NULL, modes = NULL) ## S4 method for signature 'DelayedArray' cs_fold(mat, m, modes)
DelayedArray object (only 2D)
the mode corresponding to cs_unfold
the original modes of the DelayedArray
This function is an extension of the
This is a wrapper function to
DelayedArray (higher than 2D)
T. Kolda, B. Bader, "Tensor decomposition and applications". SIAM Applied Mathematics and Applications 2009.
library("DelayedRandomArray") darr <- RandomUnifArray(c(2,3,4)) matT3 <- DelayedTensor::cs_unfold(darr, m=3) identical( as.array(DelayedTensor::cs_fold(matT3, m=3, 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.