Multiplies a sparse vector by a scalar.
Namespace:
CenterSpace.NMath.MatrixAssembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public static DoubleSparseVector Multiply( DoubleSparseVector x, double a ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function Multiply ( _ x As DoubleSparseVector, _ a As Double _ ) As DoubleSparseVector |
| Visual C++ |
|---|
public: static DoubleSparseVector^ Multiply( DoubleSparseVector^ x, double a ) |
Parameters
- x
- Type: CenterSpace.NMath.Matrix..::.DoubleSparseVector
A sparse vector.
- a
- Type: System..::.Double
A scalar.
Return Value
A sparse vector containing the product.
Remarks
u[i] = v[i] * s