| rTensor-package {rTensor} | R Documentation |
Tools for tensor analysis and decomposition
Description
This package is centered around the Tensor-class, which defines a S4 class for tensors of arbitrary number of modes. A vignette and/or a possible paper will be included in a future release of this package.
Details
This page will summarize the full functionality of this package. Note that since all the methods associated with S4 class Tensor-class are documented there, we will not duplicate it here.
The remaining functions can be split into two groups: the first is a set of tensor decompositions, and the second is a set of helper functions that are useful in tensor manipulation.
rTensor implements the following tensor decompositions:
cpCanonical Polyadic (CP) decomposition
tuckerGeneral Tucker decomposition
mpcaMultilinear Principal Component Analysis; note that for 3-Tensors this is also known as Generalized Low Rank Approximation of Matrices(GLRAM)
hosvd(Truncated-)Higher-order singular value decomposition
t_svdTensor singular value decomposition; 3-Tensors only; also note that there is an asociated reconstruction function
t_svd_reconstructpvdPopulation value decomposition of images; 3-Tensors only
rTensor also provides a set functions for tensors multiplication:
ttmTensor times matrix, aka m-mode product
ttlTensor times list (of matrices)
t_multTensor product based on block circulant unfolding; only implemented for a pair of 3-Tensors
...as well as for matrices:
hadamard_listComputes the Hadamard (element-wise) product of a list of matrices
kronecker_listComputes the Kronecker product of a list of matrices
khatri_raoComputes the Khatri-Rao product of two matrices
khatri_rao_listComputes the Khatri-Rao product of a list of matrices
foldGeneral folding of a matrix into a tensor
k_foldInverse operation for
k_unfoldunmatvecInverse operation for
matvec
For more information on any of the functions, please consult the individual man pages.
Author(s)
James Li jamesyili@gmail.com, Jacob Bien, and Martin T. Wells