Click or drag to resize

NMathFunctionsGather(FloatVector, Int32, IndexArray) Method

Gathers the specified elements of a dense vector into a compressed sparse vector. The routine references only the elements of y whose indices are listed in the array indices.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public static FloatSparseVector Gather(
	FloatVector y,
	int nnz,
	IndexArray indices
)

Parameters

y  FloatVector
Full storage sparse vector.
nnz  Int32
The number of elements of y to be gathered.
indices  IndexArray
Specifies the indices of elements to be gathered.

Return Value

FloatSparseVector
The vector converted to compressed storage.
See Also