Matrix.Subtract Into<T>(T, Matrix<T>, Matrix<T>) Method
Subtracts a matrix from a scalar.
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
A matrix whose elements are equal to the corresponding element of value minus the corresponding element of matrix.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public static Matrix<T> SubtractInto<T>(
T value,
Matrix<T> matrix,
Matrix<T> result
)
Parameters
- value T
- The value to subtract from.
- matrix Matrix<T>
- The matrix to subtract.
- result Matrix<T>
- The matrix that is to hold the result. May be null.
Type Parameters
- T
Return Value
Matrix<T>A matrix whose elements are equal to the corresponding element of value minus the corresponding element of matrix.
Exceptions
Argument | matrix is null |
Dimension | matrix and result do not have the same length. |