rand_tensor {rTensor2} | R Documentation |
Tensor with Random Entries
Description
Generate a Tensor with specified modes with iid normal(0,1) entries.
Usage
rand_tensor(modes = c(3, 4, 5), drop = FALSE)
Arguments
modes |
: the modes of the output Tensor |
drop |
: whether or not modes equal to 1 should be dropped |
Value
a Tensor object with modes given by modes
Author(s)
Kyle Caudle
Randy Hoover
Jackson Cates
References
Imported from rTensor package version 1.4.8.
Examples
rand_tensor()
rand_tensor(c(4,4,4))
rand_tensor(c(10,2,1),TRUE)
[Package rTensor2 version 2.0.0 Index]