ones(n: number): matrix
Create an array of all ones.
Creates a matrix or array filled with ones based on the provided dimensions. Accepts up to two arguments for dimensions or a single array defining the dimensions.
A matrix or array filled with ones.
ones(nrows: number,ncols: number,): matrix
Create an array of all ones.
Creates a matrix or array filled with ones based on the provided dimensions. Accepts up to two arguments for dimensions or a single array defining the dimensions.
A matrix or array filled with ones.