• Olivier Delalleau's avatar
    Simplified graphs generated for canonical slices · 5ff97962
    Olivier Delalleau 提交于
    * When `step` is 1 and either `start` or `stop` is a boundary, the
      canonical representation of `slice(start, stop, step)` is now simpler
    
    * Other simplifications in the more general case when `step` is a
      constant
    
    * Fixed crash when calling `get_scalar_constant_value()` on a numpy
      array.
    
    * Ensure that start <= stop in canonical slice representations, which
      makes it easier to compute their length.
    5ff97962
basic.py 280.8 KB