Vector<T>.SubtractAsRightCore Method

Definition

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

Overload List

SubtractAsRightCore(T, Vector<T>) Subtracts a vector from a constant.
SubtractAsRightCore(Vector<T>, Vector<T>) Subtracts one vector from another.

SubtractAsRightCore(T, Vector<T>)

Subtracts a vector from a constant.
C#
protected virtual Vector<T> SubtractAsRightCore(
	T left,
	Vector<T>? result
)

Parameters

left  T
The constant.
result  Vector<T>
The vector that is to hold the result. May be null.

Return Value

Vector<T>
A vector whose elements are the difference between the corresponding elements of this vector and left.

SubtractAsRightCore(Vector<T>, Vector<T>)

Subtracts one vector from another.
C#
protected virtual Vector<T> SubtractAsRightCore(
	Vector<T> left,
	Vector<T>? result
)

Parameters

left  Vector<T>
The left operand of the subtraction.
result  Vector<T>
The vector that is to hold the result. May be null.

Return Value

Vector<T>
A vector whose elements are the difference between the corresponding elements of this vector and left.

Exceptions

DimensionMismatchException

This vector and left do not have the same length.

See Also