Vector<T>.Subtraction Operator
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Overload List
Subtraction( | Subtracts a vector from a constant. |
Subtraction( | Subtracts a constant from a vector. |
Subtraction( | Subtracts two vectors. |
Subtraction(T, Vector<T>) Operator
Subtracts a vector from a constant.
public static Vector<T> operator -(
T value,
Vector<T> vector
)
Parameters
Return Value
Vector<T>A vector whose elements are the difference between the corresponding elements of vector and value.
Exceptions
Argument | vector is null |
Subtraction(Vector<T>, T) Operator
Subtracts a constant from a vector.
public static Vector<T> operator -(
Vector<T> vector,
T value
)
Parameters
Return Value
Vector<T>A vector whose elements are the difference of the corresponding elements of vector and value.
Exceptions
Argument | vector is null |
Subtraction(Vector<T>, Vector<T>) Operator
Subtracts two vectors.
public static Vector<T> operator -(
Vector<T> left,
Vector<T> right
)
Parameters
Return Value
Vector<T>A vector whose elements are equal to the corresponding element of left minus the corresponding element of right.
Exceptions
Argument | left is null -or- right is null |
Dimension | left and right do not have the same length. |