tperm-methods | R Documentation |
Overloads aperm
for Tensor class for convenience.
tperm(tnsr, perm, ...)
## S4 method for signature 'Tensor'
tperm(tnsr, perm, ...)
tnsr |
the Tensor instance |
perm |
the new permutation of the current modes |
... |
additional parameters to be passed into |
tperm(tnsr,perm=NULL,...)
tnsr <- rand_tensor(c(3,4,5))
dim(tperm(tnsr,perm=c(2,1,3)))
dim(tperm(tnsr,perm=c(1,3,2)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.