#4225: [with patch, positive review] faster sqrt for complex numbers
----------------------+-----------------------------------------------------
Reporter: robertwb | Owner: tbd
Type: defect | Status: new
Priority: major | Milestone: sage-3.1.3
Component: algebra | Resolution:
Keywords: |
----------------------+-----------------------------------------------------
Changes (by AlexGhitza):
* summary: [with patch, positive review, needs rebase] faster sqrt for
complex numbers => [with patch, positive
review] faster sqrt for complex numbers
Comment:
OK, I've uploaded a version rebased against 3.1.3.alpha2.
For the record, here is some timing info:
before the patch:
{{{
sage: C = ComplexField()
sage: z = C(1+i)
sage: timeit("z.sqrt()")
625 loops, best of 3: 8.57 µs per loop
sage: C = ComplexField(10000)
sage: z = C(1+i)
sage: timeit("z.sqrt()")
125 loops, best of 3: 6.95 ms per loop
}}}
after the patch:
{{{
sage: C = ComplexField()
sage: z = C(1+i)
sage: timeit("z.sqrt()")
625 loops, best of 3: 2.27 µs per loop
sage: C = ComplexField(10000)
sage: z = C(1+i)
sage: timeit("z.sqrt()")
625 loops, best of 3: 509 µs per loop
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4225#comment:8>
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
-~----------~----~----~----~------~----~------~--~---