unfold | R Documentation |
Unfold/Matricize tensor. convert matrix to tensor by mode.
unfold(tensor, mode)
tensor |
Three-mode tensor array. |
mode |
Mode of operation. |
Matrix
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.