| Library: | multi |
| See also: | zeros matrix |
| Macro: | ones | |
| Description: | creating a n x d dimensional matrix of ones |
| Usage: | x = ones(n,d) | |
| Input: | ||
| n | integer, number of rows | |
| d | integer, number of columns | |
| Output: | ||
| x | n x d matrix of ones | |
library("multi")
ones(2,3)
Contents of x [1,] 1 1 1 [2,] 1 1 1
| Library: | multi |
| See also: | zeros matrix |