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 operator *( double a, DoubleSparseVector v ) |
| Visual Basic (Declaration) |
|---|
Public Shared Operator * ( _ a As Double, _ v As DoubleSparseVector _ ) As DoubleSparseVector |
| Visual C++ |
|---|
public: static DoubleSparseVector^ operator *( double a, DoubleSparseVector^ v ) |
Parameters
- a
- Type: System..::.Double
A scalar.
- v
- Type: CenterSpace.NMath.Matrix..::.DoubleSparseVector
A sparse vector.
Return Value
A sparse vector containing the product.
Remarks
u[i] = v[i] * s