Tools for Tensor Analysis and Decomposition

A set of tools for creation, manipulation, and modeling of tensors with arbitrary number of modes. A tensor in the context of data analysis is a multidimensional array. rTensor does this by providing a S4 class 'Tensor' that wraps around the base 'array' class. rTensor provides common tensor operations as methods, including matrix unfolding, summing/averaging across modes, calculating the Frobenius norm, and taking the inner product between two tensors. Familiar array operations are overloaded, such as index subsetting via '[' and element-wise operations. rTensor also implements various tensor decomposition, including CP, GLRAM, MPCA, PVD, Tucker, INDSCAL, RESCAL, DEDICOM, PARAFAC2, and 2DLDA. For tensors with 3 modes, rTensor also implements transpose, t-product, and t-SVD, as defined in Kilmer et al. (2013). Some auxiliary functions include the Khatri-Rao product, Kronecker product, and the Hadamard product for a list of matrices.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("rTensor")

1.5.0 by Koki Tsuyuzaki, 5 months ago


https://github.com/rikenbit/rTensor


Browse source code at https://github.com/cran/rTensor


Authors: James Li [aut] , Jacob Bien [aut] , Martin Wells [aut] , Koki Tsuyuzaki [cre, ctb]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports methods

Suggests testthat


Imported by CMTFtoolbox, HDTSA, NPLStoolbox, RTFA, TRES, TensorClustering, TensorPreAve, ccTensor, dcTensor, fase, gcTensor, hierNest, hmmTensor, iTensor, mwTensor, nnTensor, parafac4microbiome, rMultiNet, symTensor, tensorMiss, tensorTS, ttTensor.

Suggested by otTensor.


See at CRAN