Click or drag to resize

MatrixTSubtraction(MatrixT, T) Operator

Subtracts a scalar from each element of a matrix.

Namespace: Altaxo.Calc.LinearAlgebra
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static Matrix<T> operator -(
	Matrix<T> leftSide,
	T rightSide
)

Parameters

leftSide  MatrixT
The left matrix to subtract.
rightSide  T
The scalar value to subtract.

Return Value

MatrixT
The result of the subtraction.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionIf leftSide and rightSide don't have the same dimensions.
ArgumentNullExceptionIf leftSide or rightSide is .
Remarks
This operator will allocate new memory for the result. It will choose the representation of the provided matrix.
See Also