Vector<T>.Add Method

Definition

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

Overload List

Add(Vector<T>) Adds another vector to this vector.
Obsolete.
Add(T, Vector<T>) Adds a vector and a constant.
Add(Vector<T>, T) Adds a vector and a constant.

Vector<T>.Add(Vector<T>)

Note: This API is now obsolete.
Adds another vector to this vector.
C#
[ObsoleteAttribute("Use the AddInPlace method instead.")]
public Vector<T> Add(
	Vector<T> vector
)

Parameters

vector  Vector<T>
The vector to add.

Return Value

Vector<T>
A reference to this instance.

Exceptions

ArgumentNullExceptionvector is null
DimensionMismatchException The length of vector does not equal the length of this instance.

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

ArgumentNullExceptionvector is null

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

ArgumentNullExceptionvector is null

See Also