Home > Extreme Optimization Mathematics Library for .NET > Reference > Extreme.Mathematics.LinearAlgebra Namespace > Matrix Class > Operators and Type Conversions
Subtracts two Matrix objects.
A Matrix that is equal to the matrix matrix1 minus the matrix matrix2.
| Exception Type | Condition |
|---|---|
| ArgumentNullException | matrix1 is a null reference
(Nothing in Visual Basic).
-or- matrix2 is a null reference (Nothing in Visual Basic). |
| 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