DiscretizedSpaceElement.__getitem__

DiscretizedSpaceElement.__getitem__(self, indices)[source]

Return self[indices].

Parameters
indicesint or slice

The position(s) that should be accessed.

Returns
valuesTensor

The value(s) at the index (indices).