Changes between Initial Version and Version 1 of Ticket #17979, comment 85


Ignore:
Timestamp:
03/25/15 07:37:19 (5 years ago)
Author:
jdemeyer
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17979, comment 85

    initial v1  
    22> 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.
    33
    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.
     4Agree. 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.