Vector<T>.Addition Operator
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.7.0
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.7.0
Overload List
| Addition( | Adds a vector and a constant. |
| Addition( | Adds a vector and a constant. |
| Addition( | Adds two vectors. |
Addition(T, Vector<T>) Operator
Adds a vector and a constant.
public static Vector<T> operator +(
T value,
Vector<T> vector
)Parameters
Return Value
Vector<T>A vector whose elements are the sum of the corresponding elements of vector and value.
Exceptions
| Argument | vector is null. |
Addition(Vector<T>, T) Operator
Adds a vector and a constant.
public static Vector<T> operator +(
Vector<T> vector,
T value
)Parameters
Return Value
Vector<T>A vector whose elements are the sum of the corresponding elements of vector and value.
Exceptions
| Argument | vector is null. |
Addition(Vector<T>, Vector<T>) Operator
Adds two vectors.
public static Vector<T> operator +(
Vector<T> left,
Vector<T> right
)Parameters
Return Value
Vector<T>A vector whose elements are the sum of the corresponding elements of left and right.
Remarks
If result is null, the operation chooses the result representation. Otherwise, result is overwritten, returned, and its representation is preserved. The result may alias either vector operand.
Exceptions
| Argument | left is null. -or- right is null. |
| Dimension | left and right do not have the same length. |