# 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.

- Author
- James Li and Jacob Bien and Martin Wells
- Date of publication
- 2015-12-15 00:56:41
- Maintainer
- James Li <jamesyili@gmail.com>
- License
- GPL (>= 2)
- Version
- 1.3
- URLs

## 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

## Files in this package

rTensor |

rTensor/NAMESPACE |

rTensor/NEWS |

rTensor/data |

rTensor/data/faces_tnsr.RData |

rTensor/data/datalist |

rTensor/R |

rTensor/R/rTensor_Decomp.R |

rTensor/R/rTensor_Class.R |

rTensor/R/rTensor_Misc.R |

rTensor/MD5 |

rTensor/DESCRIPTION |

rTensor/man |

rTensor/man/tail-methods.Rd |

rTensor/man/tperm-methods.Rd |

rTensor/man/Tensor-class.Rd |

rTensor/man/modeSum-methods.Rd |

rTensor/man/cs_fold.Rd |

rTensor/man/rs_fold.Rd |

rTensor/man/t_svd_reconstruct.Rd |

rTensor/man/Ops-methods.Rd |

rTensor/man/hadamard_list.Rd |

rTensor/man/modeMean-methods.Rd |

rTensor/man/dim-methods.Rd |

rTensor/man/k_unfold-methods.Rd |

rTensor/man/unmatvec.Rd |

rTensor/man/rs_unfold-methods.Rd |

rTensor/man/fnorm-methods.Rd |

rTensor/man/rand_tensor.Rd |

rTensor/man/vec-methods.Rd |

rTensor/man/as.tensor.Rd |

rTensor/man/t_mult.Rd |

rTensor/man/initialize-methods.Rd |

rTensor/man/tucker.Rd |

rTensor/man/khatri_rao.Rd |

rTensor/man/mpca.Rd |

rTensor/man/extract-methods.Rd |

rTensor/man/hosvd.Rd |

rTensor/man/matvec-methods.Rd |

rTensor/man/pvd.Rd |

rTensor/man/t_svd.Rd |

rTensor/man/khatri_rao_list.Rd |

rTensor/man/ttl.Rd |

rTensor/man/t-methods.Rd |

rTensor/man/print-methods.Rd |

rTensor/man/plot_orl.Rd |

rTensor/man/fold.Rd |

rTensor/man/ttm.Rd |

rTensor/man/head-methods.Rd |

rTensor/man/rTensor-package.Rd |

rTensor/man/cp.Rd |

rTensor/man/kronecker_list.Rd |

rTensor/man/cs_unfold-methods.Rd |

rTensor/man/innerProd-methods.Rd |

rTensor/man/faces_tnsr.Rd |

rTensor/man/unfold-methods.Rd |

rTensor/man/k_fold.Rd |

rTensor/man/show-methods.Rd |