SparseVector<T>.DotProduct Method

Returns the dot product of this vector with another vector.

Definition

Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public override T DotProduct(
	Vector<T> vector
)

Parameters

vector  Vector<T>
The second Vector<T>.

Return Value

T
The dot product of the two vectors.

Remarks

If vector is of type DenseVector<T>, this method uses the level 1 BLAS routine DDOT.

Exceptions

ArgumentNullExceptionvector is null.
DimensionMismatchException The length of vector does not equal the length of this instance.

See Also