exatomic.algorithms.indexing module
Indexing
Algorithms for generating indices.
- exatomic.algorithms.indexing.starts_count(starts, count)[source]
Generate sequential indices (for 2 dimensions) from starting values and lengths (counts).
\[Python\]- Parameters:
starts (
numpy.ndarray
) – Array of starting pointscount (int) – Integer count
- Returns:
objs (tuple) – Outer sequential index, inner sequential index, resulting indicies
- exatomic.algorithms.indexing.starts_counts(starts, counts)[source]
Generate a pseudo-sequential array from initial values and counts.
- Parameters:
starts (array) – Starting points for array generation
counts (array) – Values by which to increment from each starting point
- Returns:
arrays (tuple) – First index, second index, and indices to select, respectively