ManagedLinearAlgebraOperations.DotProduct Method

Definition

Namespace: Numerics.NET.LinearAlgebra.Implementation
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2

Overload List

DotProduct(Int32, ReadOnlySpan<Complex<Double>>, Int32, ReadOnlySpan<Complex<Double>>, Int32)

Forms the dot product of two vectors.

C#
public override Complex<double> DotProduct(
	int n,
	ReadOnlySpan<Complex<double>> x,
	int incx,
	ReadOnlySpan<Complex<double>> y,
	int incy
)

Parameters

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

Return Value

Complex<Double>

Implements

ILinearAlgebraOperations<T>.DotProduct(Int32, ReadOnlySpan<T>, Int32, ReadOnlySpan<T>, Int32)

Remarks

Further Details:

            jack dongarra, 3/11/78.
            modified 12/3/93, array(1) declarations changed to array(*)
            

Authors: Univ. of Tennessee, Univ. of California Berkeley, Univ. of Colorado Denver, NAG Ltd.

Date: November 2011

DotProduct(Int32, ReadOnlySpan<Double>, Int32, ReadOnlySpan<Double>, Int32)

Forms the dot product of two vectors.

C#
public override double DotProduct(
	int n,
	ReadOnlySpan<double> x,
	int incx,
	ReadOnlySpan<double> y,
	int incy
)

Parameters

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

Return Value

Double

Implements

ILinearAlgebraOperations<T>.DotProduct(Int32, ReadOnlySpan<T>, Int32, ReadOnlySpan<T>, Int32)

Remarks

Further Details:

            jack dongarra, 3/11/78.
            modified 12/3/93, array(1) declarations changed to array(*)
            

Authors: Univ. of Tennessee, Univ. of California Berkeley, Univ. of Colorado Denver, NAG Ltd.

Date: November 2011

See Also