refold | R Documentation |
Performing tensorization, which is the inverse process of unfolding
refold(unfolding, k, dim_vec)
unfolding |
A multi-dimensional array |
k |
An integer specifying the mode of array to unfold |
dim_vec |
A vector specifying the expected dimension of output array |
A multi-dimensional array
refold(matrix(1:9,nrow=3), 1, c(3,1,3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.