Matrix.Subtract<T>(Matrix<T>, T) Method

Subtracts a scalar from a matrix.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static Matrix<T> Subtract<T>(
	Matrix<T> matrix,
	T value
)

Parameters

matrix  Matrix<T>
A matrix.
value  T
The constant.

Type Parameters

T

Return Value

Matrix<T>
A matrix whose elements are the difference of the corresponding elements of matrix and value.

Exceptions

ArgumentNullExceptionmatrix is null

See Also