Ticket #2456 (closed defect: fixed)
[with patch, positive review] matrix_symbolic_dense doctest failures
| Reported by: | gfurnish | Owned by: | gfurnish |
|---|---|---|---|
| Priority: | critical | Milestone: | sage-2.10.3 |
| Component: | linear algebra | Keywords: | |
| Cc: | Work issues: | ||
| Report Upstream: | Reviewers: | ||
| Authors: | Merged in: | ||
| Dependencies: | Stopgaps: |
Description
File "matrix_symbolic_dense.pyx", line 873:
sage: list(a.fcp())
Expected:
[(x^2 - 65*x - 250, 1), (x, 3)]
Got:
[(x, 3), (x^2 - 65*x - 250, 1)]
But inside sage:
sage: a = matrix(SR, 5, [1..5^2]) sage: a.fcp() (x^2 - 65*x - 250) * x^3 sage: list(a.fcp()) [(x^2 - 65*x - 250, 1), (x, 3)]
Attachments
Change History
comment:1 Changed 5 years ago by gfurnish
- Summary changed from matrix_symbolic_dense doctest failures to [with patch, needs review] matrix_symbolic_dense doctest failures
comment:2 Changed 5 years ago by gfurnish
- Owner changed from was to gfurnish
- Status changed from new to assigned
comment:3 Changed 5 years ago by gfurnish
This patch fixes problems in factorization that cause problems here.
comment:4 Changed 5 years ago by was
- Summary changed from [with patch, needs review] matrix_symbolic_dense doctest failures to [with patch, accepted pending revision] matrix_symbolic_dense doctest failures
REFEREE REPORT:
- The second chunk in trac_2456.patch, which swaps the order of sort and simplify, breaks things. This is because simplify assumes its input is sorted, as it combines adjacent pairs.
- The rest of the patch looks fine.
Note: See
TracTickets for help on using
tickets.


This patch is correct because of changes in #2206