Vector<T>.SubtractAsLeftCore Method

Definition

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

Overload List

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

SubtractAsLeftCore(T, Vector<T>)

Subtracts a constant from a vector.
C#
protected virtual Vector<T> SubtractAsLeftCore(
	T value,
	Vector<T> result
)

Parameters

value  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 value.

SubtractAsLeftCore(Vector<T>, Vector<T>)

Subtracts one vector from another.
C#
protected virtual Vector<T> SubtractAsLeftCore(
	Vector<T> right,
	Vector<T> result
)

Parameters

right  Vector<T>
The right 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 right.

Exceptions

DimensionMismatchException This vector and right do not have the same length.

See Also