| rTensor-package | R Documentation |
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.
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_reconstruct
pvdPopulation 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_unfold
unmatvecInverse operation for matvec
For more information on any of the functions, please consult the individual man pages.
James Li jamesyili@gmail.com, Jacob Bien, and Martin T. Wells
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.