#17979: Reimplementation of IntegerListsLex
-------------------------------------+-------------------------------------
       Reporter:  aschilling         |        Owner:
           Type:  defect             |       Status:  needs_review
       Priority:  blocker            |    Milestone:  sage-6.6
      Component:  combinatorics      |   Resolution:
       Keywords:  days64             |    Merged in:
        Authors:  Bryan Gillespie,   |    Reviewers:  Nathann Cohen, Jeroen
  Anne Schilling, Nicolas M. Thiery  |  Demeyer, Travis Scrimshaw
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  public/ticket/17979                |  e151d78ea32b9cac2047e2faff3247bdcce1f5d5
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by aschilling):

 Regarding Jeroen's comment:395, I think this could possibly be fixed by
 adjusting ._floor.limit_start() after the smoothing procedure. Note that
 {{{
 sage: C=IntegerListsLex(7, floor=[4,0], max_part=4, min_slope=-1)
 sage: C.list()
 [[4, 3]]
 }}}
 also works fine. The reason is that
 {{{
 sage: C._floor.limit_start()
 2
 }}}
 so that
 {{{
 floor_sum_lower_bound = sum(self._floor(i) for i in
 range(self._floor.limit_start()))
 }}}
 in line 1076 computes a high enough bound that is caught in line 1082.
 However, in
 {{{
 sage: C=IntegerListsLex(7, floor=[4], max_part=4, min_slope=-1)
 sage: C._floor.limit_start()
 1
 }}}
 even though
 {{{
 sage: for i in range(5):
 ....:     print C._floor(i)
 ....:
 4
 3
 2
 1
 0
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/17979#comment:402>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to