Package: rTensor 1.4.8

Koki Tsuyuzaki

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:James Li and Jacob Bien and Martin Wells

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'))

Peer review:

Bug tracker:https://github.com/rikenbit/rtensor/issues

On CRAN:

39 exports 6 stars 4.10 score 0 dependencies 28 dependents 2 mentions 250 scripts 906 downloads

Last updated 2 years agofrom:796a6dd6a7. Checks:OK: 1 NOTE: 6. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 03 2024
R-4.5-winNOTESep 03 2024
R-4.5-linuxNOTESep 03 2024
R-4.4-winNOTESep 03 2024
R-4.4-macNOTESep 03 2024
R-4.3-winNOTESep 03 2024
R-4.3-macNOTESep 03 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 pageTopics
Tools for tensor analysis and decompositionrTensor-package rTensor
Extract or Replace Subtensorsextract,Tensor-method [,Tensor-method [-methods [<-,Tensor-method
Tensor Conversionas.tensor
Canonical Polyadic Decompositioncp
Column Space Folding of Matrixcs_fold
Tensor Column Space Unfoldingcs_unfold cs_unfold,Tensor-method cs_unfold-methods
Mode Getter for Tensordim,Tensor-method dim-methods
Tensor Frobenius Normfnorm fnorm,Tensor-method fnorm-methods
General Folding of Matrixfold
List hadamard Producthadamard_list
Head for Tensorhead,Tensor-method head-methods
(Truncated-)Higher-order SVDhosvd
Initializes a Tensor instanceinitialize,Tensor-method initialize-methods
Tensors Inner ProductinnerProd innerProd,Tensor,Tensor-method innerProd-methods
k-mode Folding of Matrixk_fold
Tensor k-mode Unfoldingk_unfold k_unfold,Tensor-method k_unfold-methods
Khatri-Rao Productkhatri_rao
List Khatri-Rao Productkhatri_rao_list
List Kronecker Productkronecker_list
ORL Database of Facesload_orl
Tensor Matvec Unfoldingmatvec matvec,Tensor-method matvec-methods
Tensor Mean Across Single ModemodeMean modeMean,Tensor-method modeMean-methods
Tensor Sum Across Single ModemodeSum modeSum,Tensor-method modeSum-methods
Multilinear Principal Components Analysismpca
Conformable elementwise operators for TensorOps,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 Facesplot_orl
Print for Tensorprint,Tensor-method print-methods
Population Value Decompositionpvd
Tensor with Random Entriesrand_tensor
Row Space Folding of Matrixrs_fold
Tensor Row Space Unfoldingrs_unfold rs_unfold,Tensor-method rs_unfold-methods
Show for Tensorshow,Tensor-method show-methods
Tensor Multiplication (T-MULT)t_mult
Tensor Singular Value Decompositiont_svd
Reconstruct Tensor From TSVDt_svd_reconstruct
Tensor Transposet,Tensor-method t-methods
Tail for Tensortail,Tensor-method tail-methods
S4 Class for a TensorTensor Tensor-class
Mode Permutation for Tensortperm tperm,Tensor-method tperm-methods
Tensor Times Listttl
Tensor Times Matrix (m-Mode Product)ttm
Tucker Decompositiontucker
Tensor Unfoldingunfold unfold,Tensor-method unfold-methods
Unmatvec Folding of Matrixunmatvec
Tensor Vecvec vec,Tensor-method vec-methods