[inline]
Create a matrix of ones.
This function creates a matrix of ones, with the given dimensions rows and cols.