LinearAlgebraOperationsExtensions.ConjugateDotProduct Method

Definition

Namespace: Numerics.NET.Collections
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0

Overload List

ConjugateDotProduct<T>(ILinearAlgebraOperations<T>, Int32, ReadOnlySpanSlice<T>, ReadOnlySpanSlice<T>)

Returns the inner product of two vectors.
C#
public static T ConjugateDotProduct<T>(
	this ILinearAlgebraOperations<T> operations,
	int n,
	ReadOnlySpanSlice<T> x,
	ReadOnlySpanSlice<T> y
)

Parameters

operations  ILinearAlgebraOperations<T>
The object that performs the operation.
n  Int32
The number of elements in the vectors x and y.
x  ReadOnlySpanSlice<T>
A reference to a one-dimensional array containing the elements of the vector x.
y  ReadOnlySpanSlice<T>
A reference to a one-dimensional array containing the elements of the vector y. The elements of y are overwritten with the result.

Type Parameters

T

Return Value

T

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ILinearAlgebraOperations<T>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

ConjugateDotProduct<T, TStorage>(ILinearAlgebraOperations<T>, Int32, TStorage, TStorage)

Returns the inner product of two vectors.
C#
public static T ConjugateDotProduct<T, TStorage>(
	this ILinearAlgebraOperations<T> operations,
	int n,
	TStorage x,
	TStorage y
)
where TStorage : Object, IStorageSlice<T>

Parameters

operations  ILinearAlgebraOperations<T>
The linear algebra operations instance used to perform the calculation.
n  Int32
The number of elements in the vectors x and y.
x  TStorage
A reference to a one-dimensional array containing the elements of the vector x.
y  TStorage
A reference to a one-dimensional array containing the elements of the vector y.

Type Parameters

T
TStorage

Return Value

T

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ILinearAlgebraOperations<T>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also