Calculates the dot product of two vectors.
Namespace: CenterSpace.NMath.CoreAssembly: NMathPremium (in NMathPremium.dll) Version: 5.3.0.0
Syntax
| C# |
|---|
public static FloatComplex Dot( FloatComplexVector v, FloatComplexVector w ) |
| Visual Basic |
|---|
Public Shared Function Dot ( _ v As FloatComplexVector, _ w As FloatComplexVector _ ) As FloatComplex |
| Visual C++ |
|---|
public: static FloatComplex Dot( FloatComplexVector^ v, FloatComplexVector^ w ) |
Parameters
- v
- Type: CenterSpace.NMath.Core..::..FloatComplexVector
A vector.
- w
- Type: CenterSpace.NMath.Core..::..FloatComplexVector
A vector.
Return Value
The dot product of v and w.
Remarks
d = v[0]w[0] + v[1]w[1]...
Exceptions
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::..MismatchedSizeException | Thrown if v and w have different lengths. |
| CenterSpace.NMath.Core..::..InvalidArgumentException | Thrown if v or w has zero length. |