Package: rTensor 1.4.8
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 Hadamard product for a list of matrices.
Authors:
rTensor_1.4.8.tar.gz
rTensor_1.4.8.zip(r-4.5)rTensor_1.4.8.zip(r-4.4)rTensor_1.4.8.zip(r-4.3)
rTensor_1.4.8.tgz(r-4.4-any)rTensor_1.4.8.tgz(r-4.3-any)
rTensor_1.4.8.tar.gz(r-4.5-noble)rTensor_1.4.8.tar.gz(r-4.4-noble)
rTensor_1.4.8.tgz(r-4.4-emscripten)rTensor_1.4.8.tgz(r-4.3-emscripten)
rTensor.pdf |rTensor.html✨
rTensor/json (API)
NEWS
# Install 'rTensor' in R: |
install.packages('rTensor', repos = c('https://rikenbit.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/rikenbit/rtensor/issues
Last updated 2 years agofrom:796a6dd6a7. Checks:OK: 1 NOTE: 6. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 01 2024 |
R-4.5-win | NOTE | Nov 01 2024 |
R-4.5-linux | NOTE | Nov 01 2024 |
R-4.4-win | NOTE | Nov 01 2024 |
R-4.4-mac | NOTE | Nov 01 2024 |
R-4.3-win | NOTE | Nov 01 2024 |
R-4.3-mac | NOTE | Nov 01 2024 |
Exports:as.tensorcpcs_foldcs_unfoldfnormfoldhadamard_listheadhosvdinnerProdk_foldk_unfoldkhatri_raokhatri_rao_listkronecker_listload_orlmatvecmodeMeanmodeSummpcaplot_orlprintpvdrand_tensorrs_foldrs_unfoldshowtt_multt_svdt_svd_reconstructtailtpermttlttmtuckerunfoldunmatvecvec
Dependencies:
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Tools for tensor analysis and decomposition | rTensor-package rTensor |
Extract or Replace Subtensors | extract,Tensor-method [,Tensor-method [-methods [<-,Tensor-method |
Tensor Conversion | as.tensor |
Canonical Polyadic Decomposition | cp |
Column Space Folding of Matrix | cs_fold |
Tensor Column Space Unfolding | cs_unfold cs_unfold,Tensor-method cs_unfold-methods |
Mode Getter for Tensor | dim,Tensor-method dim-methods |
Tensor Frobenius Norm | fnorm fnorm,Tensor-method fnorm-methods |
General Folding of Matrix | fold |
List hadamard Product | hadamard_list |
Head for Tensor | head,Tensor-method head-methods |
(Truncated-)Higher-order SVD | hosvd |
Initializes a Tensor instance | initialize,Tensor-method initialize-methods |
Tensors Inner Product | innerProd innerProd,Tensor,Tensor-method innerProd-methods |
k-mode Folding of Matrix | k_fold |
Tensor k-mode Unfolding | k_unfold k_unfold,Tensor-method k_unfold-methods |
Khatri-Rao Product | khatri_rao |
List Khatri-Rao Product | khatri_rao_list |
List Kronecker Product | kronecker_list |
ORL Database of Faces | load_orl |
Tensor Matvec Unfolding | matvec matvec,Tensor-method matvec-methods |
Tensor Mean Across Single Mode | modeMean modeMean,Tensor-method modeMean-methods |
Tensor Sum Across Single Mode | modeSum modeSum,Tensor-method modeSum-methods |
Multilinear Principal Components Analysis | mpca |
Conformable elementwise operators for Tensor | Ops,array,Tensor-method Ops,numeric,Tensor-method Ops,Tensor,array-method Ops,Tensor,numeric-method Ops,Tensor,Tensor-method Ops-methods |
Function to plot the ORL Database of Faces | plot_orl |
Print for Tensor | print,Tensor-method print-methods |
Population Value Decomposition | pvd |
Tensor with Random Entries | rand_tensor |
Row Space Folding of Matrix | rs_fold |
Tensor Row Space Unfolding | rs_unfold rs_unfold,Tensor-method rs_unfold-methods |
Show for Tensor | show,Tensor-method show-methods |
Tensor Multiplication (T-MULT) | t_mult |
Tensor Singular Value Decomposition | t_svd |
Reconstruct Tensor From TSVD | t_svd_reconstruct |
Tensor Transpose | t,Tensor-method t-methods |
Tail for Tensor | tail,Tensor-method tail-methods |
S4 Class for a Tensor | Tensor Tensor-class |
Mode Permutation for Tensor | tperm tperm,Tensor-method tperm-methods |
Tensor Times List | ttl |
Tensor Times Matrix (m-Mode Product) | ttm |
Tucker Decomposition | tucker |
Tensor Unfolding | unfold unfold,Tensor-method unfold-methods |
Unmatvec Folding of Matrix | unmatvec |
Tensor Vec | vec vec,Tensor-method vec-methods |