Subtracts a sparse vector from a dense 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 -( DoubleVector y, DoubleSparseVector x ) |
| Visual Basic (Declaration) |
|---|
Public Shared Operator - ( _ y As DoubleVector, _ x As DoubleSparseVector _ ) As DoubleVector |
| Visual C++ |
|---|
public: static DoubleVector^ operator -( DoubleVector^ y, DoubleSparseVector^ x ) |
Parameters
- y
- Type: CenterSpace.NMath.Core..::.DoubleVector
A dense vector.
- x
- Type: CenterSpace.NMath.Matrix..::.DoubleSparseVector
A sparse vector.
Return Value
A new vector containing the difference x - y.
Remarks
u[i] = x[i] - y[i]