Vector.AddScaled<T> Method

Adds two vectors.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
C#
public static Vector<T> AddScaled<T>(
	Vector<T> left,
	T factor,
	Vector<T> right
)

Parameters

left  Vector<T>
The first vector.
factor  T
The scale factor for right.
right  Vector<T>
The second vector.

Type Parameters

T

Return Value

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

Exceptions

ArgumentNullException

left is null.

-or-

right is null.

DimensionMismatchException

left and right do not have the same length.

See Also