Matrix<T>.SubtractInPlace Method

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3

Overload List

SubtractInPlace(T) Subtracts a scalar value from the elements of this matrix in-place.
SubtractInPlace(Matrix<T>) Subtracts another matrix from this matrix in-place.
SubtractInPlace(Vector<T>, Dimension) Subtracts a vector broadcast along the specified dimension from this matrix in-place.

SubtractInPlace(T)

Subtracts a scalar value from the elements of this matrix in-place.
C#
public Matrix<T> SubtractInPlace(
	T value
)

Parameters

value  T
The value to subtract.

Return Value

Matrix<T>
A reference to this instance.

SubtractInPlace(Matrix<T>)

Subtracts another matrix from this matrix in-place.
C#
public Matrix<T> SubtractInPlace(
	Matrix<T> matrix
)

Parameters

matrix  Matrix<T>
The matrix to subtract.

Return Value

Matrix<T>
A reference to this instance.

Exceptions

ArgumentNullException

matrix is null.

DimensionMismatchException

The length of matrix does not equal the length of this instance.

SubtractInPlace(Vector<T>, Dimension)

Subtracts a vector broadcast along the specified dimension from this matrix in-place.
C#
public Matrix<T> SubtractInPlace(
	Vector<T> vector,
	Dimension broadcastDimension
)

Parameters

vector  Vector<T>
The vector to broadcast and subtract.
broadcastDimension  Dimension
A value that specifies whether the elements in vector should be broadcast across rows or columns.

Return Value

Matrix<T>
A reference to this instance.

Exceptions

ArgumentNullException

vector is null.

DimensionMismatchException

The length of vector does not equal the length of this instance.

See Also