Vector<T>.SubtractAsRightCore Method

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

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