DenseMatrix<T>.Subtract Method

Definition

Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

Subtract(DenseMatrix<T>, DenseMatrix<T>) Subtracts two dense matrix objects.
Subtract(DenseMatrix<T>, DenseMatrix<T>, DenseMatrix<T>) Subtracts two DenseMatrix<T> objects and stores the result in a third DenseMatrix<T>.

Subtract(DenseMatrix<T>, DenseMatrix<T>)

Subtracts two dense matrix objects.
C#
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

ArgumentNullExceptionmatrix1 is null

-or-

matrix2 is null

DimensionMismatchExceptionThe 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>.
C#
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

ArgumentNullExceptionmatrix1 is null

-or-

matrix2 is null

-or-

resultMatrix is null

DimensionMismatchException The dimensions of matrix2 does not equal the dimensions of matrix1.

-or-

The dimensions of resultMatrix does not equal the dimensions of matrix1.

See Also