# Import statement
from hottbox.core import kolda_fold
kolda_fold
(matrix, mode, shape)[source]¶Fold a 2D array into a N-dimensional array.
Unfolded version of a tensor
A mode along which original tensor was unfolded into a matrix
Shape of the original tensor before it was unfolded
N-dimensional array of the original shape
Notes
Much slower then fold
At the moment it reverts unfolding operation (kolda_unfold
). Will be generalised in a future