GenericLinearAlgebraOperations<T>.DotProduct Method

Definition

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

Overload List

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

Forms the dot product of two vectors.

C#
public override T DotProduct(
	int n,
	ReadOnlySpan<T> dx,
	int incx,
	ReadOnlySpan<T> dy,
	int incy
)

Parameters

n  Int32
The number of elements in the vectors x and y.
dx  ReadOnlySpan<T>
 
incx  Int32
The distance between elements in x.
dy  ReadOnlySpan<T>
 
incy  Int32
The distance between elements in y.

Return Value

T

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<Complex<T>>, Int32, ReadOnlySpan<Complex<T>>, Int32)

Forms the dot product of two vectors.

C#
public override Complex<T> DotProduct(
	int n,
	ReadOnlySpan<Complex<T>> zx,
	int incx,
	ReadOnlySpan<Complex<T>> zy,
	int incy
)

Parameters

n  Int32
The number of elements in the vectors x and y.
zx  ReadOnlySpan<Complex<T>>
 
incx  Int32
The distance between elements in x.
zy  ReadOnlySpan<Complex<T>>
 
incy  Int32
The distance between elements in y.

Return Value

Complex<T>

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