Click or drag to resize

NMathFunctionsDot(DoubleVector, DoubleVector) Method

Calculates the dot product of two vectors.

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

Parameters

v  DoubleVector
A vector.
w  DoubleVector
A vector.

Return Value

Double
The conjugate dot product.
Exceptions
ExceptionCondition
MismatchedSizeExceptionThrown if v and w do not have equal lengths.
InvalidArgumentException Thrown if v or w has zero length.
Remarks
d = v[0]w[0] + v[1]w[1]...
See Also