Home > Extreme Optimization Mathematics Library for .NET > Reference > Extreme.Mathematics.LinearAlgebra Namespace > Matrix Class > Methods
Subtracts two Matrix objects.
A Matrix that is equal to the matrix matrix1 minus the matrix matrix2. A Matrix that is the sum of the specified form of this matrix and the matrix matrix2.
| Exception Type | Condition |
|---|---|
| DimensionMismatchException | The dimensions of this instance and the matrix matrix2 are not compatible for the specified operation. |
| DimensionMismatchException | The
number of rows of matrix1 does not
equal the number of rows of matrix2 -or- The number of columns of matrix1 does not equal the number of columns of matrix2. |
Matrix Class | Extreme.Mathematics.LinearAlgebra Namespace