Represents a matrix of doubles. Internally represented as a SimpleMatrix from EJML.
Constructor to create a Matrix from a list of lists.
Constructor to create a Matrix from multiple collections.
The number of columns in the matrix.
The number of rows in the matrix.
The size of the matrix.
Returns the nth column of the matrix.
Returns the diagonal elements of this matrix.
Returns the element at the given indices.
Subtracts another matrix from this matrix. The matrices must have the same dimensions.
Adds another matrix to this matrix. The matrices must have the same dimensions.
Returns the nth row of the matrix.
Sets the element at the given indices to the given value.
Multiplies this matrix by another matrix. The number of columns in this matrix must match the number of rows in the other matrix.
Multiplies this matrix by a scalar.
Returns the transpose of this matrix.
Returns the matrix with all elements negated. This is equivalent to multiplying the matrix by -1.