rTensor

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, and Tucker. 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 Hamadard product for a list of matrices.

Total

13,373

Last month

1,290

Last week

1,022

Average per day

43

Daily downloads

Total downloads

Description file content

Package
rTensor
Type
Package
Title
Tools for Tensor Analysis and Decomposition
Version
1.4
Author
James Li and Jacob Bien and Martin Wells
Maintainer
James Li
Description
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, and Tucker. 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 Hamadard product for a list of matrices.
License
GPL (>= 2)
Imports
methods
Depends
R (>= 2.10.0)
LazyData
true
Date
2018-12-03
URL
Packaged
2018-12-04 02:00:28 UTC; jamesyili
RoxygenNote
6.1.1
NeedsCompilation
no
Repository
CRAN
Date/Publication
2018-12-04 10:20:09 UTC

install.packages('rTensor')

1.4

5 days ago

http://jamesyili.github.io/rTensor

James Li

GPL (>= 2)

Depends on

R (>= 2.10.0)

Imports

methods

Discussions