Changes between Initial Version and Version 1 of Ticket #17979, comment 85
- Timestamp:
- 03/25/15 07:37:19 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #17979, comment 85
initial v1 2 2 > Note that `floor` and `ceiling` take multiple different types of parameters, not just functions. This code checks for the type of the input parameter and optimizes when using a constant or a list of integers. 3 3 4 Agree. However, with your code there is absolutely no way to specify "`floor` is a function which is always at least 1". I should be able to specify such an input with `floor=myfunc, min_part=1` and the code can optimize this case better than when just specifying the function. 4 Agree. However, with your code there is absolutely no way to specify "`floor` is a function which is always at least 1". I should be able to specify such an input with `floor=myfunc, min_part=1` and the code can optimize this case better than when just specifying the function. [comment:60] is an excellent example of this.