Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

tperm-methods

Mode Permutation for Tensor


Description

Overloads aperm for Tensor class for convenience.

Usage

tperm(tnsr, perm, ...)

## S4 method for signature 'Tensor'
tperm(tnsr, perm, ...)

Arguments

tnsr

the Tensor instance

perm

the new permutation of the current modes

...

additional parameters to be passed into aperm

Details

tperm(tnsr,perm=NULL,...)

Examples

tnsr <- rand_tensor(c(3,4,5))
dim(tperm(tnsr,perm=c(2,1,3)))
dim(tperm(tnsr,perm=c(1,3,2)))

rTensor

Tools for Tensor Analysis and Decomposition

v1.4.8
GPL (>= 2)
Authors
James Li and Jacob Bien and Martin Wells
Initial release
2021-05-14

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.