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.

Install the latest version of this package by entering the following in R:
AuthorJames Li and Jacob Bien and Martin Wells
Date of publication2015-12-15 00:56:41
MaintainerJames Li <jamesyili@gmail.com>
LicenseGPL (>= 2)

View on CRAN

Man pages

as.tensor: Tensor Conversion

cp: Canonical Polyadic Decomposition

cs_fold: Column Space Folding of Matrix

cs_unfold-methods: Tensor Column Space Unfolding

dim-methods: Mode Getter for Tensor

extract-methods: Extract or Replace Subtensors

faces_tnsr: ORL Database of Faces

fnorm-methods: Tensor Frobenius Norm

fold: General Folding of Matrix

hadamard_list: List hadamard Product

head-methods: Head for Tensor

hosvd: (Truncated-)Higher-order SVD

initialize-methods: Initializes a Tensor instance

innerProd-methods: Tensors Inner Product

k_fold: k-mode Folding of Matrix

khatri_rao: Khatri-Rao Product

khatri_rao_list: List Khatri-Rao Product

kronecker_list: List Kronecker Product

k_unfold-methods: Tensor k-mode Unfolding

matvec-methods: Tensor Matvec Unfolding

modeMean-methods: Tensor Mean Across Single Mode

modeSum-methods: Tensor Sum Across Single Mode

mpca: Multilinear Principal Components Analysis

Ops-methods: Conformable elementwise operators for Tensor

plot_orl: Function to plot the ORL Database of Faces

print-methods: Print for Tensor

pvd: Population Value Decomposition

rand_tensor: Tensor with Random Entries

rs_fold: Row Space Folding of Matrix

rs_unfold-methods: Tensor Row Space Unfolding

rTensor-package: Tools for tensor analysis and decomposition

show-methods: Show for Tensor

tail-methods: Tail for Tensor

Tensor-class: S4 Class for a Tensor

t-methods: Tensor Transpose

t_mult: Tensor Multiplication (T-MULT)

tperm-methods: Mode Permutation for Tensor

t_svd: Tensor Singular Value Decomposition

t_svd_reconstruct: Reconstruct Tensor From TSVD

ttl: Tensor Times List

ttm: Tensor Times Matrix (m-Mode Product)

tucker: Tucker Decomposition

unfold-methods: Tensor Unfolding

unmatvec: Unmatvec Folding of Matrix

vec-methods: Tensor Vec


as.tensor Man page
cp Man page
cs_fold Man page
cs_unfold Man page
cs_unfold-methods Man page
cs_unfold,Tensor-method Man page
dim-methods Man page
dim,Tensor-method Man page
extract,Tensor-method Man page
faces_tnsr Man page
fnorm Man page
fnorm-methods Man page
fnorm,Tensor-method Man page
fold Man page
hadamard_list Man page
head-methods Man page
head,Tensor-method Man page
hosvd Man page
initialize-methods Man page
initialize,Tensor-method Man page
innerProd Man page
innerProd-methods Man page
innerProd,Tensor,Tensor-method Man page
k_fold Man page
khatri_rao Man page
khatri_rao_list Man page
kronecker_list Man page
k_unfold Man page
k_unfold-methods Man page
k_unfold,Tensor-method Man page
matvec Man page
matvec-methods Man page
matvec,Tensor-method Man page
[-methods Man page
modeMean Man page
modeMean-methods Man page
modeMean,Tensor-method Man page
modeSum Man page
modeSum-methods Man page
modeSum,Tensor-method Man page
mpca Man page
Ops,array,Tensor-method Man page
Ops-methods Man page
Ops,numeric,Tensor-method Man page
Ops,Tensor,array-method Man page
Ops,Tensor,numeric-method Man page
Ops,Tensor,Tensor-method Man page
plot_orl Man page
print-methods Man page
print,Tensor-method Man page
pvd Man page
rand_tensor Man page
rs_fold Man page
rs_unfold Man page
rs_unfold-methods Man page
rs_unfold,Tensor-method Man page
rTensor Man page
rTensor-package Man page
show-methods Man page
show,Tensor-method Man page
tail-methods Man page
tail,Tensor-method Man page
Tensor Man page
Tensor-class Man page
[<-,Tensor-method Man page
[,Tensor-method Man page
t-methods Man page
t_mult Man page
tperm Man page
tperm-methods Man page
tperm,Tensor-method Man page
t_svd Man page
t_svd_reconstruct Man page
t,Tensor-method Man page
ttl Man page
ttm Man page
tucker Man page
unfold Man page
unfold-methods Man page
unfold,Tensor-method Man page
unmatvec Man page
vec Man page
vec-methods Man page
vec,Tensor-method Man page

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.