Unfolding of a tensor by mapping the kth mode
(specified through parameter
and all other modes onto the column space.
This the most common type of unfolding operation for
Tucker decompositions and its variants.
Also known as k-mode matricization.
k_unfold(darr, m) ## S4 method for signature 'DelayedArray' k_unfold(darr, m)
the index of the mode to unfold on
This function is an extension of the
This is a wrapper function to
dim(darr)[m] rows and
T. Kolda, B. Bader, "Tensor decomposition and applications". SIAM Applied Mathematics and Applications 2009.
library("DelayedRandomArray") darr <- RandomUnifArray(c(2,3,4)) rs_unfold(darr, m=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.