Vector<T>.Add Method

Definition

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

Overload List

Add(T, Vector<T>) Adds a vector and a constant.
Add(Vector<T>, T) Adds a vector and a constant.

Add(T, Vector<T>)

Adds a vector and a constant.
C#
public static Vector<T> Add(
	T value,
	Vector<T> vector
)

Parameters

value  T
The constant.
vector  Vector<T>
A vector.

Return Value

Vector<T>
A vector whose elements are the sum of the corresponding elements of vector and value.

Exceptions

ArgumentNullException

vector is null.

Add(Vector<T>, T)

Adds a vector and a constant.
C#
public static Vector<T> Add(
	Vector<T> vector,
	T value
)

Parameters

vector  Vector<T>
A vector.
value  T
The constant.

Return Value

Vector<T>
A vector whose elements are the sum of the corresponding elements of vector and value.

Exceptions

ArgumentNullException

vector is null.

See Also