boundlab.linearop.narrow_indices#

boundlab.linearop.narrow_indices(ndim, dim, start, length)[source]#

Create slice indices equivalent to tensor.narrow(dim, start, length).