probly.representation.sampling.array_sample_axis_tracking¶
Implementation of axis tracking through NumPy-style indexing operations.
Functions
|
Track the new position of a 'special' axis after a NumPy-style __getitem__ indexing operation. |
- probly.representation.sampling.array_sample_axis_tracking.track_axis(index, special_axis, ndim)[source]¶
Track the new position of a ‘special’ axis after a NumPy-style __getitem__ indexing operation.
- Parameters:
- Returns:
The new axis index of the special axis after indexing, or None if the axis is removed (e.g., via integer indexing).
- Return type:
int | None