Sparse Linear Algebra Operations<T>.Gather And Zero 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
Gather | Gathers specific elements of a dense vector into a sparse vector and zeros the original components. |
Gather | Gathers specific elements of a dense vector into a sparse vector and zeros the original components. |
GatherAndZero(Int32, ArraySlice<T>, Array1D<T>, Array1D<Int32>)
Gathers specific elements of a dense vector into a sparse vector and zeros the original components.
public virtual void GatherAndZero(
int n,
ArraySlice<T> y,
Array1D<T> x,
Array1D<int> indx
)
Parameters
- n Int32
- The number of elements in the vectors x and y.
- 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.
- 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.
Implements
ISparseLinearAlgebraOperations<T>.GatherAndZero(Int32, ArraySlice<T>, Array1D<T>, Array1D<Int32>)GatherAndZero(Int32, ArraySlice<Complex<T>>, Array1D<Complex<T>>, Array1D<Int32>)
Gathers specific elements of a dense vector into a sparse vector and zeros the original components.
public virtual void GatherAndZero(
int n,
ArraySlice<Complex<T>> y,
Array1D<Complex<T>> x,
Array1D<int> indx
)
Parameters
- n Int32
- The number of elements in the vectors x and y.
- 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.
- 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.