R/all-generics.r
, R/sptensor-unfold.r
unfolded_sptensor.Rd
Construct an unfolded_sptensor from a sparse matrix, mode, and dimensions of original tensor.
unfolded_sptensor(mat, mode, tensor_dims) # S4 method for Matrix,numeric,numeric unfolded_sptensor(mat, mode, tensor_dims)
mat | sparse matrix representing unfolded tensor |
---|---|
mode | dimension to unfold tensor along |
tensor_dims | original dimensions of tensor (useful for re-folding) |
unfolded_sptensor-class
for class documentation.