powered by
Overloads aperm for Tensor class for convenience.
aperm
tperm(tnsr, perm, ...)# S4 method for Tensor tperm(tnsr, perm, ...)
# S4 method for Tensor tperm(tnsr, perm, ...)
the Tensor instance
the new permutation of the current modes
additional parameters to be passed into aperm
tperm(tnsr,perm=NULL,...)
# NOT RUN { tnsr <- rand_tensor(c(3,4,5)) dim(tperm(tnsr,perm=c(2,1,3))) dim(tperm(tnsr,perm=c(1,3,2))) # }
Run the code above in your browser using DataLab