Sparse Linear Algebra Operations<T>.Gather Method
Definition
Namespace: Numerics.NET.LinearAlgebra.Implementation
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Overload List
Gather( | Gathers specific elements of a dense vector into a sparse vector. |
Gather( | Gathers specific elements of a dense vector into a sparse vector. |
Gather(Int32, Int32, ReadOnlySpan<T>, Int32, Span<T>, ReadOnlySpan<Int32>)
Gathers specific elements of a dense vector into a sparse vector.
public virtual void Gather(
int n,
int m,
ReadOnlySpan<T> y,
int yStride,
Span<T> x,
ReadOnlySpan<int> indx
)
Parameters
- n Int32
- The number of elements in the vectors x and y.
- m Int32
- The length of the vector y.
- y ReadOnlySpan<T>
- 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.
- x Span<T>
- A reference to a one-dimensional array containing the elements of the vector x.
- indx ReadOnlySpan<Int32>
- Integer array of component indices.
Implements
ISparseLinearAlgebraOperations<T>.Gather(Int32, Int32, ReadOnlySpan<T>, Int32, Span<T>, ReadOnlySpan<Int32>)Gather(Int32, Int32, ReadOnlySpan<Complex<T>>, Int32, Span<Complex<T>>, ReadOnlySpan<Int32>)
Gathers specific elements of a dense vector into a sparse vector.
public virtual void Gather(
int n,
int m,
ReadOnlySpan<Complex<T>> y,
int yStride,
Span<Complex<T>> x,
ReadOnlySpan<int> indx
)
Parameters
- n Int32
- The number of elements in the vectors x and y.
- m Int32
- The length of the vector y.
- y ReadOnlySpan<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.
- yStride Int32
- The distance between successive elements in y.
- x Span<Complex<T>>
- A reference to a one-dimensional array containing the elements of the vector x.
- indx ReadOnlySpan<Int32>
- Integer array of component indices.