Package: rTensor 1.5.0

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, Tucker, INDSCAL, RESCAL, DEDICOM, PARAFAC2, and 2DLDA. 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 [aut], Jacob Bien [aut], Martin Wells [aut], Koki Tsuyuzaki [cre, ctb]

rTensor_1.5.0.tar.gz
rTensor_1.5.0.zip(r-4.7)rTensor_1.5.0.zip(r-4.6)rTensor_1.5.0.zip(r-4.5)
rTensor_1.5.0.tgz(r-4.6-any)rTensor_1.5.0.tgz(r-4.5-any)
rTensor_1.5.0.tar.gz(r-4.7-any)rTensor_1.5.0.tar.gz(r-4.6-any)
rTensor_1.5.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
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

On CRAN:

Conda:

8.28 score 7 stars 31 packages 474 scripts 1.0k downloads 2 mentions 44 exports 0 dependencies

Last updated from:875b585b1d. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK112
source / vignettesOK158
linux-release-x86_64OK136
macos-release-arm64OK120
macos-oldrel-arm64OK105
windows-develOK74
windows-releaseOK73
windows-oldrelOK107
wasm-releaseOK83

Exports:as.tensorcpcs_foldcs_unfolddedicomfnormfoldhadamard_listheadhosvdindscalinnerProdk_foldk_unfoldkhatri_raokhatri_rao_listkronecker_listload_orlmatvecmodeMeanmodeSummpcaparafac2plot_orlprintpvdrand_tensorrescalrs_foldrs_unfoldshowtt_multt_svdt_svd_reconstructtailtpermttlttmtuckertwodldaunfoldunmatvecvec

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
DEDICOM Decompositiondedicom
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
INDSCAL Decompositionindscal
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
PARAFAC2 Decompositionparafac2
Function to plot the ORL Database of Facesplot_orl
Print for Tensorprint,Tensor-method print-methods
Population Value Decompositionpvd
Tensor with Random Entriesrand_tensor
RESCAL Decompositionrescal
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
Two-Dimensional Linear Discriminant Analysistwodlda
Tensor Unfoldingunfold unfold,Tensor-method unfold-methods
Unmatvec Folding of Matrixunmatvec
Tensor Vecvec vec,Tensor-method vec-methods