pygsti.tools.slicetools.indices#
- indices(s, n=None)#
Returns a list of the indices specified by slice s.
- Parameters:
s (slice) – The slice to operate upon.
n (int, optional) – The number of elements in the array being indexed, used for computing negative start/stop points.
- Return type:
list of ints