
Last chance! 50% off unlimited learning
Sale ends in
Unfolding of a tensor by mapping the kth mode (specified through parameter m
), 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(tnsr, m)# S4 method for Tensor
k_unfold(tnsr, m = NULL)
the Tensor instance
the index of the mode to unfold on
matrix with x@modes[m]
rows and prod(x@modes[-m])
columns
k_unfold(tnsr,m=NULL)
T. Kolda and B. Bader, "Tensor decomposition and applications". SIAM Applied Mathematics and Applications 2009.
# NOT RUN {
tnsr <- rand_tensor()
matT2<-rs_unfold(tnsr,m=2)
# }
Run the code above in your browser using DataLab