R/rand_tensor.R

rand_tensor <- function (modes = c(3, 4, 5), drop = FALSE)
{
  as.tensor(array(rnorm(prod(modes)), dim = modes), drop = drop)
}

Try the rTensor2 package in your browser

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

rTensor2 documentation built on May 29, 2024, 8:34 a.m.