Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

k_unfold-methods

Tensor k-mode Unfolding


Description

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.

Usage

k_unfold(tnsr, m)

## S4 method for signature 'Tensor'
k_unfold(tnsr, m = NULL)

Arguments

tnsr

the Tensor instance

m

the index of the mode to unfold on

Details

k_unfold(tnsr,m=NULL)

Value

matrix with x@modes[m] rows and prod(x@modes[-m]) columns

References

T. Kolda and B. Bader, "Tensor decomposition and applications". SIAM Applied Mathematics and Applications 2009.

See Also

Examples

tnsr <- rand_tensor()
matT2<-rs_unfold(tnsr,m=2)

rTensor

Tools for Tensor Analysis and Decomposition

v1.4.8
GPL (>= 2)
Authors
James Li and Jacob Bien and Martin Wells
Initial release
2021-05-14

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.