rTensor

Tools for Tensor Analysis and Decomposition

CRAN Package

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.


Documentation


Team


Insights

Last 30 days

This package has been downloaded 881 times in the last 30 days. Not bad! The download count is somewhere between 'small-town buzz' and 'moderate academic conference'. The following heatmap shows the distribution of downloads per day. Yesterday, it was downloaded 32 times.

Sun
Mon
Tue
Wed
Thu
Fri
Sat
11 downloadsMar 16, 2025
18 downloadsMar 17, 2025
35 downloadsMar 18, 2025
44 downloadsMar 19, 2025
25 downloadsMar 20, 2025
54 downloadsMar 21, 2025
28 downloadsMar 22, 2025
12 downloadsMar 23, 2025
32 downloadsMar 24, 2025
24 downloadsMar 25, 2025
31 downloadsMar 26, 2025
30 downloadsMar 27, 2025
24 downloadsMar 28, 2025
37 downloadsMar 29, 2025
18 downloadsMar 30, 2025
13 downloadsMar 31, 2025
52 downloadsApr 1, 2025
51 downloadsApr 2, 2025
30 downloadsApr 3, 2025
11 downloadsApr 4, 2025
22 downloadsApr 5, 2025
19 downloadsApr 6, 2025
57 downloadsApr 7, 2025
32 downloadsApr 8, 2025
24 downloadsApr 9, 2025
20 downloadsApr 10, 2025
20 downloadsApr 11, 2025
44 downloadsApr 12, 2025
31 downloadsApr 13, 2025
32 downloadsApr 14, 2025
0 downloadsApr 15, 2025
0 downloadsApr 16, 2025
0 downloadsApr 17, 2025
0 downloadsApr 18, 2025
0 downloadsApr 19, 2025
11
57

The following line graph shows the downloads per day. You can hover over the graph to see the exact number of downloads per day.

Last 365 days

This package has been downloaded 10,397 times in the last 365 days. The downloads are officially high enough to crash an underfunded departmental server. Quite an accomplishment! The day with the most downloads was Mar 04, 2025 with 102 downloads.

The following line graph shows the downloads per day. You can hover over the graph to see the exact number of downloads per day.

Data provided by CRAN


Binaries


Dependencies

  • Reverse Imports23 packages
  • Reverse Suggests1 package