Dense Matrix<T>.Subtract Method
Definition
Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Overload List
Subtract( | Subtracts two dense matrix objects. |
Subtract( | Subtracts two DenseMatrix<T> objects and stores the result in a third DenseMatrix<T>. |
Subtract(DenseMatrix<T>, DenseMatrix<T>)
Subtracts two dense matrix objects.
public static DenseMatrix<T> Subtract(
DenseMatrix<T> matrix1,
DenseMatrix<T> matrix2
)
Parameters
- matrix1 DenseMatrix<T>
- The first DenseMatrix<T>.
- matrix2 DenseMatrix<T>
- The second DenseMatrix<T>.
Return Value
DenseMatrix<T>A DenseMatrix<T> that is equals the matrix matrix2 subtracted from matrix1.
Exceptions
Argument | matrix1 is null -or- matrix2 is null |
Dimension | The dimensions of matrix1 do not equal the dimensions of matrix2. |
Subtract(DenseMatrix<T>, DenseMatrix<T>, DenseMatrix<T>)
Subtracts two DenseMatrix<T> objects and stores the
result in a third DenseMatrix<T>.
public static DenseMatrix<T> Subtract(
DenseMatrix<T> matrix1,
DenseMatrix<T> matrix2,
DenseMatrix<T> resultMatrix
)
Parameters
- matrix1 DenseMatrix<T>
- The first DenseMatrix<T>.
- matrix2 DenseMatrix<T>
- The second DenseMatrix<T>.
- resultMatrix DenseMatrix<T>
- A DenseMatrix<T> that is to receive the result of the multiplication.
Return Value
DenseMatrix<T>A reference to resultMatrix.
Exceptions
Argument | matrix1 is null -or- matrix2 is null -or- resultMatrix is null |
Dimension |
The dimensions of matrix2 does not
equal the dimensions of matrix1.
-or- The dimensions of resultMatrix does not equal the dimensions of matrix1. |