boundlab.linearop.make_get_slices#

boundlab.linearop.make_get_slices(input_shape, indices)[source]#

Convert arbitrary Python indices to the structured list[list[slice]] format.

Integer indices are converted to length-1 slices (dim is NOT removed). For dimension removal, compose with SqueezeOp.