Description Usage Arguments Value Note Examples

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

1 | ```
rand_tensor(modes = c(3, 4, 5), drop = FALSE)
``` |

`modes` |
the modes of the output Tensor |

`drop` |
whether or not modes equal to 1 should be dropped |

a Tensor object with modes given by `modes`

Default `rand_tensor()`

generates a 3-Tensor with modes `c(3,4,5)`

.

1 2 3 | ```
rand_tensor()
rand_tensor(c(4,4,4))
rand_tensor(c(10,2,1),TRUE)
``` |

jamesyili/rTensor documentation built on May 17, 2017, 9:44 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.