Vector<T>.SubtractInPlace Method

Definition

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

Overload List

SubtractInPlace(T) Subtracts a constant value from the elements of this vector in-place.
SubtractInPlace(Vector<T>) Subtracts another vector from this vector in-place.

SubtractInPlace(T)

Subtracts a constant value from the elements of this vector in-place.
C#
public Vector<T> SubtractInPlace(
	T value
)

Parameters

value  T
The value to subtract.

Return Value

Vector<T>
A reference to this instance.

SubtractInPlace(Vector<T>)

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

Parameters

vector  Vector<T>
The vector to subtract.

Return Value

Vector<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