Sparse Linear Algebra Operations<T>.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 dot product of a sparse and a dense vector. |
Dot | Returns the dot product of a sparse and a dense vector. |
DotProduct(Int32, Array1D<T>, Array1D<Int32>, ArraySlice<T>)
Returns the dot product of a sparse and a dense vector.
public virtual T DotProduct(
int n,
Array1D<T> x,
Array1D<int> indx,
ArraySlice<T> y
)
Parameters
- n Int32
- The number of elements in the vectors x and y.
- x Array1D<T>
- A reference to a one-dimensional array containing the elements of the vector x.
- indx Array1D<Int32>
- Integer array of component indices.
- y ArraySlice<T>
- 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
TImplements
ISparseLinearAlgebraOperations<T>.DotProduct(Int32, Array1D<T>, Array1D<Int32>, ArraySlice<T>)DotProduct(Int32, Array1D<Complex<T>>, Array1D<Int32>, ArraySlice<Complex<T>>)
Returns the dot product of a sparse and a dense vector.
public virtual Complex<T> DotProduct(
int n,
Array1D<Complex<T>> x,
Array1D<int> indx,
ArraySlice<Complex<T>> y
)
Parameters
- n Int32
- The number of elements in the vectors x and y.
- x Array1D<Complex<T>>
- A reference to a one-dimensional array containing the elements of the vector x.
- indx Array1D<Int32>
- Integer array of component indices.
- y ArraySlice<Complex<T>>
- A reference to a one-dimensional array containing the elements of the vector y. The elements of y are overwritten with the result.