SparseVector<T>.AddScaledInPlace Method

Adds a scaled vector to this vector.

Definition

Namespace: Numerics.NET.LinearAlgebra
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
public override Vector<T> AddScaledInPlace(
	T factor,
	Vector<T> vector
)

Parameters

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

Return Value

Vector<T>
A reference to this vector.

Remarks

If vector is of type DenseVector<T>, this method uses the level 1 BLAS routine DAXPY.

Exceptions

ArgumentNullException

vector is null.

DimensionMismatchException

The length of vector does not equal the length of this instance.

See Also