Companion object for the Matrix2 class, offering utility methods and definitions related to matrix creation and operations, as well as given values for configuration purposes.
Matrix2
Method to create an identity matrix of order n.
the underlying type.
the required size of the rows and columns.
a matrix of size n x n with 1s down the diagonal and zeros elsewhere.