Sparse Linear Algebra Operations.Dot Product Method
Definition
Namespace: Numerics.NET.LinearAlgebra.Implementation
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Overload List
Dot | Returns the dot product of a sparse and a dense vector. |
Dot | Returns the dot product of a sparse and a dense vector. |
DotProduct(Int32, ReadOnlySpan<Complex<Double>>, ReadOnlySpan<Int32>, Int32, ReadOnlySpan<Complex<Double>>, Int32)
Returns the dot product of a sparse and a dense vector.
public override Complex<double> DotProduct(
int n,
ReadOnlySpan<Complex<double>> x,
ReadOnlySpan<int> indx,
int m,
ReadOnlySpan<Complex<double>> y,
int yStride
)
Parameters
- n Int32
- The number of elements in the vectors x and y.
- x ReadOnlySpan<Complex<Double>>
- A reference to a one-dimensional array containing the elements of the vector x.
- indx ReadOnlySpan<Int32>
- Integer array of component indices.
- m Int32
- The length of the vector y.
- y ReadOnlySpan<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.
- yStride Int32
- The distance between successive elements in y.
Return Value
Complex<Double>Implements
ISparseLinearAlgebraOperations<T>.DotProduct(Int32, ReadOnlySpan<T>, ReadOnlySpan<Int32>, Int32, ReadOnlySpan<T>, Int32)ISparseLinearAlgebraOperations<T>.DotProduct(Int32, ReadOnlySpan<T>, ReadOnlySpan<Int32>, Int32, ReadOnlySpan<T>, Int32)
DotProduct(Int32, ReadOnlySpan<Double>, ReadOnlySpan<Int32>, Int32, ReadOnlySpan<Double>, Int32)
Returns the dot product of a sparse and a dense vector.
public override double DotProduct(
int n,
ReadOnlySpan<double> x,
ReadOnlySpan<int> indx,
int m,
ReadOnlySpan<double> y,
int yStride
)
Parameters
- n Int32
- The number of elements in the vectors x and y.
- x ReadOnlySpan<Double>
- A reference to a one-dimensional array containing the elements of the vector x.
- indx ReadOnlySpan<Int32>
- Integer array of component indices.
- m Int32
- The length of the vector y.
- y ReadOnlySpan<Double>
- A reference to a one-dimensional array containing the elements of the vector y. The elements of y are overwritten with the result.
- yStride Int32
- The distance between successive elements in y.
Return Value
DoubleImplements
ISparseLinearAlgebraOperations<T>.DotProduct(Int32, ReadOnlySpan<T>, ReadOnlySpan<Int32>, Int32, ReadOnlySpan<T>, Int32)ISparseLinearAlgebraOperations<T>.DotProduct(Int32, ReadOnlySpan<T>, ReadOnlySpan<Int32>, Int32, ReadOnlySpan<T>, Int32)