Skip to content

nest_iter(dimension, current_dimension = None, slicing = False, **kwargs)

Recursive function that produces a generator meant to yield nested index values to target every possible array sub_unit, whatever the number of provided dimensions

Parameters

dimension : TYPE DESCRIPTION. current_dimension : TYPE, optional Internal only parameter. Specifies the current state of the iteration for the yielder. The default is None. slicing : Bool, optional dimensions indices are returns in the format of a tuple of slices objects (for better compatibility with numpy arrays) The default is False. **kwargs : TYPE DESCRIPTION.

Raises

StopIteration DESCRIPTION.

Yields

TYPE DESCRIPTION.

Back to top