 | DoubleSparseVectorMultiply(DoubleSparseVector, Double) Method |
Multiplies a sparse vector by a scalar.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntaxpublic static DoubleSparseVector Multiply(
DoubleSparseVector x,
double a
)
Public Shared Function Multiply (
x As DoubleSparseVector,
a As Double
) As DoubleSparseVector
public:
static DoubleSparseVector^ Multiply(
DoubleSparseVector^ x,
double a
)
static member Multiply :
x : DoubleSparseVector *
a : float -> DoubleSparseVector
Parameters
- x DoubleSparseVector
- A sparse vector.
- a Double
- A scalar.
Return Value
DoubleSparseVectorA sparse vector containing the product.
Remarksu[i] = v[i] * s
See Also