R/mFlatten.R

Defines functions mFlatten

Documented in mFlatten

mFlatten <- function(x, m){
  rplusone <- length(dim(x))
  aperm(apply(x, c(m, rplusone), c), c(2, 1, 3))
}

Try the tensorBSS package in your browser

Any scripts or data that you put into this service are public.

tensorBSS documentation built on June 2, 2021, 9:08 a.m.