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