| NMathFunctionsDot(DoubleVector, DoubleSparseVector) Method |
Calculates the dot product of a sparse vector and a dense vector.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public static double Dot(
DoubleVector v,
DoubleSparseVector w
)
Public Shared Function Dot (
v As DoubleVector,
w As DoubleSparseVector
) As Double
public:
static double Dot(
DoubleVector^ v,
DoubleSparseVector^ w
)
static member Dot :
v : DoubleVector *
w : DoubleSparseVector -> float
Parameters
- v DoubleVector
- A dense vector.
- w DoubleSparseVector
- A sparse vector.
Return Value
DoubleThe dot product.
Exceptions Remarks d = v[0]w[0] + v[1]w[1]...
See Also