#5223: [with patch; needs work] silly bug in flint wrapper makes it a factor of
10
slower for division of a polynomial by an integer
------------------------------+---------------------------------------------
Reporter: was | Owner: somebody
Type: defect | Status: new
Priority: major | Milestone: sage-3.3
Component: basic arithmetic | Resolution:
Keywords: |
------------------------------+---------------------------------------------
Changes (by mabshoff):
* summary: [with patch; positive review] silly bug in flint wrapper
makes it a factor of 10 slower for division of
a polynomial by an integer => [with patch;
needs work] silly bug in flint wrapper makes it
a factor of 10 slower for division of a
polynomial by an integer
Comment:
This patch causes the following doctest failure:
{{{
mabsh...@sage:/scratch/mabshoff/sage-3.3.rc0$ ./sage -t -long
devel/sage/sage/rings/polynomial/padics/polynomial_padic_capped_relative_dense.py
sage -t -long
"devel/sage/sage/rings/polynomial/padics/polynomial_padic_capped_relative_dense.py"
**********************************************************************
File
"/scratch/mabshoff/sage-3.3.rc0/devel/sage/sage/rings/polynomial/padics/polynomial_padic_capped_relative_dense.py",
line 592:
sage: b = a.rshift_coeffs(1); b
Expected:
(O(13^3))*t^2 + (1 + O(13^2))*t + (13 + O(13^5))
Got:
(O(13^3))*t^2 + (9 + 8*13 + O(13^2))*t + (7 + 12*13 + 7*13^2 + 6*13^3
+ O(13^4))
**********************************************************************
File
"/scratch/mabshoff/sage-3.3.rc0/devel/sage/sage/rings/polynomial/padics/polynomial_padic_capped_relative_dense.py",
line 594:
sage: b.list()
Expected:
[13 + O(13^5), 1 + O(13^2), O(13^3)]
Got:
[7 + 12*13 + 7*13^2 + 6*13^3 + O(13^4), 9 + 8*13 + O(13^2), O(13^3)]
**********************************************************************
File
"/scratch/mabshoff/sage-3.3.rc0/devel/sage/sage/rings/polynomial/padics/polynomial_padic_capped_relative_dense.py",
line 596:
sage: b = a.rshift_coeffs(2); b
Expected:
(O(13^2))*t^2 + (O(13))*t + (1 + O(13^4))
Got:
(O(13^2))*t^2 + (7 + O(13))*t + (8 + 3*13 + 10*13^2 + 9*13^3 +
O(13^4))
**********************************************************************
File
"/scratch/mabshoff/sage-3.3.rc0/devel/sage/sage/rings/polynomial/padics/polynomial_padic_capped_relative_dense.py",
line 598:
sage: b.list()
Expected:
[1 + O(13^4), O(13), O(13^2)]
Got:
[8 + 3*13 + 10*13^2 + 9*13^3 + O(13^4), 7 + O(13), O(13^2)]
**********************************************************************
}}}
Cheers,
Michael
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5223#comment:2>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---