Managed Linear Algebra Operations.Dot Product Method
Definition
Namespace: Extreme.Mathematics.LinearAlgebra.Implementation
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Overload List
Dot | Returns the inner product of two vectors. |
Dot | Returns the inner product of two vectors. |
DotProduct(Int32, ArraySlice<Complex<Double>>, ArraySlice<Complex<Double>>)
Returns the inner product of two vectors.
public override Complex<double> DotProduct(
int n,
ArraySlice<Complex<double>> x,
ArraySlice<Complex<double>> y
)
Parameters
- n Int32
- The number of elements in the vectors x and y.
- x ArraySlice<Complex<Double>>
- A reference to a one-dimensional array containing the elements of the vector x.
- y ArraySlice<Complex<Double>>
- A reference to a one-dimensional array containing the elements of the vector y. The elements of y are overwritten with the result.
Return Value
Complex<Double>Implements
ILinearAlgebraOperations<T>.DotProduct(Int32, ArraySlice<T>, ArraySlice<T>)DotProduct(Int32, ArraySlice<Double>, ArraySlice<Double>)
Returns the inner product of two vectors.
public override double DotProduct(
int n,
ArraySlice<double> x,
ArraySlice<double> y
)
Parameters
- n Int32
- The number of elements in the vectors x and y.
- x ArraySlice<Double>
- A reference to a one-dimensional array containing the elements of the vector x.
- y ArraySlice<Double>
- A reference to a one-dimensional array containing the elements of the vector y. The elements of y are overwritten with the result.
Return Value
DoubleThe dot product of the two vectors.