Tensor-class {tensorregress} | R Documentation |
S4 Class for a Tensor
Description
An S4 class for a tensor with arbitrary number of modes. The Tensor class extends the base "array" class to include additional tensor manipulation (folding, unfolding, reshaping, subsetting) as well as a formal class definition that enables more explicit tensor algebra.
Slots
- num_modes
number of modes (integer)
- modes
vector of modes (integer), aka sizes/extents/dimensions
- data
actual data of the tensor, which can be 'array' or 'vector'
Note
All of the decompositions and regression models in this package require a Tensor input.
Author(s)
James Li jamesyili@gmail.com
References
James Li, Jacob Bien, Martin T. Wells (2018). rTensor: An R Package for Multidimensional Array (Tensor) Unfolding, Multiplication, and Decomposition. Journal of Statistical Software, Vol. 87, No. 10, 1-31. URL: http://www.jstatsoft.org/v087/i10/.