Skip to content

rTensor

Tools for Tensor Analysis and Decomposition

v1.4.9 · Aug 24, 2025 · MIT + file LICENSE

Description

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.

Downloads

994

Last 30 days

3814th

2.8K

Last 90 days

19.8K

Last year

Trend: +20.8% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (22)

suggests

Dependency Network

Dependencies Reverse dependencies CMTFtoolbox NPLStoolbox RTFA TRES TensorClustering TensorPreAve WormTensor ccTensor dcTensor fase gcTensor hierNest iTensor mwTensor nnTensor +7 more reverse deps rTensor

Version History

new 1.4.9 Mar 10, 2026
updated 1.4.9 ← 1.4.8 diff Aug 24, 2025
updated 1.4.8 ← 1.4.1 diff May 14, 2021
updated 1.4.1 ← 1.4 diff Mar 21, 2020
updated 1.4 ← 1.3 diff Dec 3, 2018
updated 1.3 ← 1.2 diff Dec 14, 2015
updated 1.2 ← 1.1 diff Nov 10, 2014
updated 1.1 ← 1.0 diff Apr 7, 2014
new 1.0 Jan 27, 2014