ones create an array of all ones with the same element type and dims as x.

ones(x)

Arguments

x

R or julia matrices or vectors.