Ticket #6619 (closed defect: fixed)
[with patch, positive review] Fix ``inner`` option for integer vectors
| Reported by: | nthiery | Owned by: | nthiery |
|---|---|---|---|
| Priority: | major | Milestone: | sage-4.1.1 |
| Component: | combinatorics | Keywords: | inner, integer vectors |
| Cc: | sage-combinat, burcin | Work issues: | |
| Report Upstream: | Reviewers: | Dan Drake | |
| Authors: | Nicolas M. Thiéry | Merged in: | Sage 4.1.1.alpha1 |
| Dependencies: | Stopgaps: |
Description (last modified by nthiery) (diff)
Those examples did not pass due to a typo in the code.
sage: IV = IntegerVectors(3,10,inner=[4,1,3], min_part = 2)
sage: min_length, max_length, floor, ceiling, min_slope, max_slope = IV._parameters()
sage: floor(1), floor(2), floor(3)
(4, 2, 3)
sage: IV = IntegerVectors(3, 10, outer=[4,1,3], max_part = 3)
sage: min_length, max_length, floor, ceiling, min_slope, max_slope = IV._parameters()
sage: ceiling(1), ceiling(2), ceiling(3)
(3, 1, 3)
Attachments
Change History
comment:2 Changed 4 years ago by nthiery
- Owner changed from tbd to nthiery
- Status changed from new to assigned
comment:3 Changed 4 years ago by ddrake
- Reviewers changed from Burcin Erocal to Dan Drake
- Component changed from algebra to combinatorics
- Summary changed from [with patch, needs review] Fix ``inner`` option for integer vectors to [with patch, positive review] Fix ``inner`` option for integer vectors
Positive review.
Note: See
TracTickets for help on using
tickets.

