ILinearAlgebraOperations<T>.DotProduct Method

Returns the inner product of two vectors.

Definition

Namespace: Numerics.NET.LinearAlgebra.Implementation
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0
C#
T DotProduct(
	int n,
	ReadOnlySpan<T> x,
	int incx,
	ReadOnlySpan<T> y,
	int incy
)

Parameters

n  Int32
The number of elements in the vectors x and y.
x  ReadOnlySpan<T>
A span containing the elements of the vector x.
incx  Int32
The distance between elements in x.
y  ReadOnlySpan<T>
A span containing the elements of the vector y.
incy  Int32
The distance between elements in y.

Return Value

T

See Also