Linear Algebra Operations.Dot Product<T> Method
Returns the inner product of two vectors.
Definition
Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
The dot product of the two vectors.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public static T DotProduct<T>(
int n,
ArraySlice<T> x,
ArraySlice<T> y
)
Parameters
- n Int32
- The number of elements in the vectors x and y.
- x ArraySlice<T>
- A reference to a one-dimensional array containing the elements of the vector x.
- y ArraySlice<T>
- A reference to a one-dimensional array containing the elements of the vector y.
Type Parameters
- T
Return Value
TThe dot product of the two vectors.