ones

final Matrix ones(Integer m, Integer n)

Make a matrix of shape m * n in which all elements are 1

Return

a matrix in which all elements are 1

Parameters

m

number of rows.

n

number of columns.