Linear Algebra Operations.Dot Product<T, TStorage> Method
Returns the inner product of two vectors.
Definition
Namespace: Numerics.NET.LinearAlgebra
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
The dot product of the two vectors.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
public static T DotProduct<T, TStorage>(
int n,
TStorage x,
TStorage y
)
where TStorage : Object, IStorageSlice<T>
Parameters
- 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
TThe dot product of the two vectors.