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.Matrix
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
public static DoubleSparseVector Gather(
	DoubleVector y,
	int nnz,
	IndexArray indices
)
Visual Basic (Declaration)
Public Shared Function Gather ( _
	y As DoubleVector, _
	nnz As Integer, _
	indices As IndexArray _
) As DoubleSparseVector
Visual C++
public:
static DoubleSparseVector^ Gather(
	DoubleVector^ y, 
	int nnz, 
	IndexArray^ indices
)

Parameters

y
Type: CenterSpace.NMath.Core..::.DoubleVector
Full storage sparse vector.
nnz
Type: System..::.Int32
The number of elements of y to be gathered.
indices
Type: CenterSpace.NMath.Matrix..::.IndexArray
Specifies the indices of elements to be gathered.

Return Value

The vector converted to compressed storage.

See Also