LibCapy - idxCombination

Iterator on combination of indices.

Macros:

Enumerations:

None.

Typedefs:

None.

Struct CapyIdxCombination :

Struct CapyIdxCombination's properties:

Dimension of the combination

Current indices

Ranges for each indices (default: [0,1], inclusive)

Fields for the forEach macro

Index in iteration

Struct CapyIdxCombination's methods:

Methods for the forEach macro

Destructor

Functions:

Create a CapyIdxCombination

Input argument(s):

dim: dimension of the combination

Output and side effect(s):

Return a CapyIdxCombination

Allocate memory for a new CapyIdxCombination and create it

Input argument(s):

dim: dimension of the combination

Output and side effect(s):

Return a CapyIdxCombination

Exception(s):

May raise CapyExc_MallocFailed.

Free the memory used by a CapyIdxCombination* and reset '*that' to NULL

Input argument(s):

that: a pointer to the CapyIdxCombination to free

2023-08-04
in LibCapy,
5 views
Copyright 2021-2024 Baillehache Pascal