| NMathFunctionsGather(FloatVector, 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 FloatSparseVector Gather(
FloatVector y,
IndexArray indices
)
Public Shared Function Gather (
y As FloatVector,
indices As IndexArray
) As FloatSparseVector
public:
static FloatSparseVector^ Gather(
FloatVector^ y,
IndexArray^ indices
)
static member Gather :
y : FloatVector *
indices : IndexArray -> FloatSparseVector
Parameters
- y FloatVector
- Full storage sparse vector.
- indices IndexArray
- Specifies the indices of elements to be
gathered.
Return Value
FloatSparseVectorThe vector converted to compressed storage.
See Also