Multiplies a sparse vector by a scalar.

Namespace:  CenterSpace.NMath.Matrix
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
public static DoubleSparseVector operator *(
	DoubleSparseVector v,
	double a
)
Visual Basic (Declaration)
Public Shared Operator * ( _
	v As DoubleSparseVector, _
	a As Double _
) As DoubleSparseVector
Visual C++
public:
static DoubleSparseVector^ operator *(
	DoubleSparseVector^ v, 
	double a
)

Parameters

v
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

See Also