Vector.AddScaled<T> Method

Adds two vectors.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
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

ArgumentNullExceptionleft is null

-or-

right is null

DimensionMismatchExceptionleft and right do not have the same length.

See Also