Home > Extreme Optimization Mathematics Library for .NET > Reference > Extreme.Mathematics.LinearAlgebra Namespace > GeneralVector Class > Methods


Extreme Optimization Mathematics Library for .NET

GeneralVector.DotProduct Method 

Returns the dot product of this vector with another vector.

[Visual Basic]
Overrides Public Function DotProduct( _
   ByVal vector As Vector _
) As Double
[C#]
public override double DotProduct(
   Vector vector
);

Parameters

vector
The second Vector.

Return Value

The dot product of the two vectors.

Remarks

If vector is of type GeneralVector, this method uses the level 1 BLAS routine DDOT.

Exceptions

Exception TypeCondition
ArgumentNullExceptionvector is a null reference (Nothing in Visual Basic).
DimensionMismatchException The length of vector does not equal the length of this instance.

See Also

GeneralVector Class | Extreme.Mathematics.LinearAlgebra Namespace