Click or drag to resize

NMathFunctionsDot(FloatComplexSparseVector, FloatComplexVector) Method

Calculates the dot product of a sparse vector and a dense vector.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public static FloatComplex Dot(
	FloatComplexSparseVector w,
	FloatComplexVector v
)

Parameters

w  FloatComplexSparseVector
A sparse vector.
v  FloatComplexVector
A dense vector.

Return Value

FloatComplex
The dot product.
Exceptions
ExceptionCondition
InvalidArgumentException Thrown if v or w has zero length.
Remarks
d = v[0]w[0] + v[1]w[1]...
See Also