powered by
X_i_jk => X_i_j_k, X_j_ki => X_i_j_k, X_k_ij => X_i_j_k
fold(X, mode, shape)
X_i_j_k Three-mode tensor.
Data matrix to fold.
Mode of operation.
Dimension of original tensor.
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)) # X_i_j_k
Run the code above in your browser using DataLab