Tensor-class function

S4 Class for a Tensor

S4 Class for a Tensor

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. class

Note

All of the decompositions and regression models in this package require a Tensor input.

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'

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/.

See Also

as.tensor

Author(s)

James Li jamesyili@gmail.com

  • Maintainer: Jiaxin Hu
  • License: GPL (>= 2)
  • Last published: 2023-06-18

Useful links