Click or drag to resize

DoubleSparseVectorAdd(DoubleVector, DoubleSparseVector) Method

Adds a dense vector to a sparse vector. The result is a dense vector.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public static DoubleVector Add(
	DoubleVector y,
	DoubleSparseVector x
)

Parameters

y  DoubleVector
A dense vector.
x  DoubleSparseVector
A sparse vector.

Return Value

DoubleVector
A new vector containing the sum x + y.
Remarks
u[i] = x[i] + y[i]
See Also