pygsti.tools.slicetools.indices_as_array#
- indices_as_array(s, n=None)#
Returns a numpy array 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:
numpy ndarray array of integers