pygsti.tools.slicetools#
Utility functions for working with Python slice objects
Functions
|
Divides a slice into sub-slices based on a maximum length (for each sub-slice). |
|
Returns a list of the indices specified by slice s. |
|
Returns a numpy array of the indices specified by slice s. |
|
Returns the intersection of two slices (which must have the same step). |
|
Returns the intersection of two slices (which must have the same step). |
|
Returns the length (the number of indices) contained in a slice. |
|
Returns a slice corresponding to a given list of (integer) indices, if this is possible. |
|
Returns a new slice whose start and stop points are shifted by offset. |
|
|
|
A slice that is the composition of base_slc and slc. |
|
Returns slc_or_list_like as an index array (an integer numpy.ndarray). |