Adds a dense vector to a sparse vector. The result is a dense vector.
Namespace:
CenterSpace.NMath.MatrixAssembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public static DoubleVector operator +( DoubleSparseVector x, DoubleVector y ) |
| Visual Basic (Declaration) |
|---|
Public Shared Operator + ( _ x As DoubleSparseVector, _ y As DoubleVector _ ) As DoubleVector |
| Visual C++ |
|---|
public: static DoubleVector^ operator +( DoubleSparseVector^ x, DoubleVector^ y ) |
Parameters
- x
- Type: CenterSpace.NMath.Matrix..::.DoubleSparseVector
A sparse vector.
- y
- Type: CenterSpace.NMath.Core..::.DoubleVector
A dense vector.
Return Value
A new vector containing the sum x + y.
Remarks
u[i] = x[i] + y[i]