pygsti.tools.slicetools.slice_of_slice#
- slice_of_slice(slc, base_slc)#
A slice that is the composition of base_slc and slc.
So that when indexing an array a, a[slice_of_slice(slc, base_slc)] == a[base_slc][slc]
- Parameters:
slc (slice) – the slice to take out of base_slc.
base_slc (slice) – the original “base” slice to act upon.
- Return type:
slice