CartesianProduct.__getitem__¶
- CartesianProduct.__getitem__(indices)[source]¶
Return
self[indices]
.Examples
>>> reals, complexnrs = odl.RealNumbers(), odl.ComplexNumbers() >>> prod = odl.CartesianProduct(reals, complexnrs, complexnrs, reals) >>> prod[1] ComplexNumbers() >>> prod[2:4] CartesianProduct(ComplexNumbers(), RealNumbers())