Changes between Initial Version and Version 4 of Ticket #13840


Ignore:
Timestamp:
01/31/13 21:07:51 (9 years ago)
Author:
tscrim
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13840

    • Property Status changed from new to needs_review
    • Property Cc sage-combinat added
    • Property Dependencies changed from to #14045
  • Ticket #13840 – Description

    initial v4  
    1 This patch speeds up `IntegerListsLex` by removing calls to sage's `infinity` and has `max_slope` and `min_slope` set to `None` and has `max_part` default to `float(infinity)`.
     1This patch speeds up `IntegerListsLex` by removing calls to sage's `infinity` and instead uses `float('+inf')` and `float('-inf')`.
    22
    33Before the patch:
     
    99{{{
    1010sage: time p = Partitions(150, max_slope=-1, length=15).list()
    11 Time: CPU 2.86 s, Wall: 2.98 s
     11Time: CPU 3.97 s, Wall: 4.14 s
    1212}}}