DiscretizedSpaceElement.__getitem__

DiscretizedSpaceElement.__getitem__(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).