powered by
Generate a Tensor with specified modes with iid normal(0,1) entries.
rand_tensor(modes = c(3, 4, 5), drop = FALSE)
a Tensor object with modes given by modes
: the modes of the output Tensor
: whether or not modes equal to 1 should be dropped
Kyle Caudle
Randy Hoover
Jackson Cates
Imported from rTensor package version 1.4.8.
rand_tensor() rand_tensor(c(4,4,4)) rand_tensor(c(10,2,1),TRUE)
Run the code above in your browser using DataLab