ManagedLinearAlgebraOperationsOfSingle.DotProduct Method

Definition

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

Overload List

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

Forms the dot product of two vectors.

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

Parameters

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

Return Value

Complex<Single>

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

Forms the dot product of two vectors.

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

Parameters

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

Return Value

Single

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