Matrix of ones

In mathematics, a matrix of ones or all-ones matrix is a matrix with every entry equal to one. For example:

Some sources call the all-ones matrix the unit matrix, but that term may also refer to the identity matrix, a different type of matrix.

A vector of ones or all-ones vector is matrix of ones having row or column form; it should not be confused with unit vectors.