Generates a matrix of ones
ones
generates a matrix of ones.
ones(n, p = n)
n |
number of rows |
p |
number of columns |
if only n is specified, the resulting matrix will be square.
a matrix filled with ones.
Jan Graffelman (jan.graffelman@upc.edu)
Id <- ones(3) print(Id)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.