unfold {simuclustfactor}R Documentation

Tensor Matricization

Description

Unfold/Matricize tensor. convert matrix to tensor by mode.

Usage

unfold(tensor, mode)

Arguments

tensor

Three-mode tensor array.

mode

Mode of operation.

Value

Matrix

Examples

X_i_jk = generate_dataset()$X_i_jk
X_i_j_k = fold(X_i_jk, mode=1, shape=c(I=8,J=5,K=4))
unfold(X_i_j_k, mode=1) # X_i_jk


[Package simuclustfactor version 0.0.3 Index]