Click or drag to resize

SparseVectorDoAdd(Single, VectorSingle) Method

Adds a scalar to each element of the vector and stores the result in the result vector. Warning, the new 'sparse vector' with a non-zero scalar added to it will be a 100% filled sparse vector and very inefficient. Would be better to work with a dense vector instead.

Namespace: Altaxo.Calc.LinearAlgebra.Single
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
protected override void DoAdd(
	float scalar,
	Vector<float> result
)

Parameters

scalar  Single
The scalar to add.
result  VectorSingle
The vector to store the result of the addition.
See Also