unfolded_sptensor: Construct an unfolded sparse tensor

Description Usage Arguments See Also

Description

Construct an unfolded_sptensor from a sparse matrix, mode, and dimensions of original tensor.

Usage

1
2
3
4
5
unfolded_sptensor(mat, mode, tensor_dims)

## S4 method for signature 'Matrix,numeric,numeric'
unfolded_sptensor(mat, mode,
  tensor_dims)

Arguments

mat

sparse matrix representing unfolded tensor

mode

dimension to unfold tensor along

tensor_dims

original dimensions of tensor (useful for re-folding)

See Also

unfolded_sptensor-class for class documentation.


tensorr documentation built on May 2, 2019, 3:26 a.m.