Vector<T>.AddScaledInPlace Method

Adds a scaled vector to this vector.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public virtual Vector<T> AddScaledInPlace(
	T factor,
	Vector<T> vector
)

Parameters

factor  T
The scale factor for vector.
vector  Vector<T>
The vector to add.

Return Value

Vector<T>
A reference to this instance.

Remarks

Using this method is more efficient than evaluating the equivalent expression using overloaded operators. In the latter case, two intermediate vectors are created. This method doesn't create any intermediate vectors.

Exceptions

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

See Also