Subtracts a scalar from a matrix.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static Matrix<T> Subtract<T>(
Matrix<T> matrix,
T value
)
Public Shared Function Subtract(Of T) (
matrix As Matrix(Of T),
value As T
) As Matrix(Of T)
public:
generic<typename T>
static Matrix<T>^ Subtract(
Matrix<T>^ matrix,
T value
)
static member Subtract :
matrix : Matrix<'T> *
value : 'T -> Matrix<'T>
Parameters
- matrix
- Type: Extreme.MathematicsMatrixT
A matrix. - value
- Type: T
The constant.
Type Parameters
- T
Return Value
Type:
MatrixTA matrix whose elements are
the difference of the corresponding elements of
matrix and
value.
Reference