Gathers specific elements of a dense vector into a sparse vector and zeros the original components.
Namespace: Extreme.Mathematics.LinearAlgebra.ImplementationAssembly: Extreme.Numerics.Net40 (in Extreme.Numerics.Net40.dll) Version: 6.0.16073.0 (6.0.16312.0)
void GatherAndZero(
int n,
ArraySlice<T> y,
Array1D<T> x,
Array1D<int> indx
)
Sub GatherAndZero (
n As Integer,
y As ArraySlice(Of T),
x As Array1D(Of T),
indx As Array1D(Of Integer)
)
void GatherAndZero(
int n,
ArraySlice<T> y,
Array1D<T> x,
Array1D<int> indx
)
abstract GatherAndZero :
n : int *
y : ArraySlice<'T> *
x : Array1D<'T> *
indx : Array1D<int> -> unit
Parameters
- n
- Type: SystemInt32
The number of elements in the vectors
x and y. - y
- Type: Extreme.CollectionsArraySliceT
A reference to a one-dimensional array
containing the elements of the vector y.
The elements of y are overwritten with
the result. - x
- Type: Extreme.CollectionsArray1DT
A reference to a one-dimensional array
containing the elements of the vector x.
- indx
- Type: Extreme.CollectionsArray1DInt32
Integer array of component indices.
Numerical Libraries
Supported in: 6.0
Reference