| NMathFunctionsGather(DoubleVector, 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.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public static DoubleSparseVector Gather(
DoubleVector y,
IndexArray indices
)
Public Shared Function Gather (
y As DoubleVector,
indices As IndexArray
) As DoubleSparseVector
public:
static DoubleSparseVector^ Gather(
DoubleVector^ y,
IndexArray^ indices
)
static member Gather :
y : DoubleVector *
indices : IndexArray -> DoubleSparseVector
Parameters
- y DoubleVector
- Full storage sparse vector.
- indices IndexArray
- Specifies the indices of elements to be
gathered.
Return Value
DoubleSparseVectorThe vector converted to compressed storage.
See Also