SparseVectorDoAdd(Double, VectorDouble) 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.DoubleAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax protected override void DoAdd(
double scalar,
Vector<double> result
)
Parameters
- scalar Double
-
The scalar to add.
- result VectorDouble
-
The vector to store the result of the addition.
See Also