rand_tensor: Tensor with Random Entries

Description Usage Arguments Value Note Examples

View source: R/rTensor_Misc.R

Description

Generate a Tensor with specified modes with iid normal(0,1) entries.

Usage

1
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

Note

Default rand_tensor() generates a 3-Tensor with modes c(3,4,5).

Examples

1
2
3

jamesyili/rTensor documentation built on May 18, 2019, 11:22 a.m.