Create an identity matrix.
If numCols is not provided, it defaults to numRows, i.e., a square identity matrix with ones on the diagonal.
Optional
Create an identity matrix.
If numCols is not provided, it defaults to numRows, i.e., a square identity matrix with ones on the diagonal.