IntervalProd.__getitem__¶
- IntervalProd.__getitem__(indices)[source]¶
- Return - self[indices]- Parameters:
- indicesindex expression
- Object determining which parts of the interval product to extract. 
 
- Returns:
- subintervalIntervalProd
- Interval product corresponding to the given indices. 
 
- subinterval
 - Examples - >>> rbox = IntervalProd([-1, 2, 0], [-0.5, 3, 0.5]) - Indexing by integer selects single axes: - >>> rbox[0] IntervalProd(-1.0, -0.5) - With slices, multiple axes can be selected: - >>> rbox[:] IntervalProd([-1., 2., 0.], [-0.5, 3. , 0.5]) >>> rbox[::2] IntervalProd([-1., 0.], [-0.5, 0.5]) - A list of integers can be used for free combinations of axes: - >>> rbox[[0, 1, 0]] IntervalProd([-1., 2., -1.], [-0.5, 3. , -0.5])