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


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

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17979, comment 85

    v1 v2  
    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. [comment:60] is an excellent example of this.
     4However, without `min_part`, 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.