boundlab.linearop.GetItemOp#

class boundlab.linearop.GetItemOp[source]#

Bases: object

Indexing / slicing via x[indices].

Factory: returns ReshapeOp @ GetSliceOp (or just GetSliceOp when no integer indices remove a dim). Slice extracts the region; reshape drops the size-1 dims for any int indices.

Methods

__init__

static __new__(cls, input_shape, indices)[source]#