#19688: Much fast divisors using PARI divisorsu
--------------------------------+-------------------------------------
Reporter: vdelecroix | Owner:
Type: enhancement | Status: new
Priority: major | Milestone: sage-6.10
Component: basic arithmetic | Keywords:
Merged in: | Authors: Vincent Delecroix
Reviewers: | Report Upstream: N/A
Work issues: | Branch:
Commit: | Dependencies:
Stopgaps: |
--------------------------------+-------------------------------------
Using PARI we get a huge speedup for integer of small range. With the
branch applied
{{{
sage: %timeit 100.divisors(method='pari')
1000000 loops, best of 3: 818 ns per loop
sage: %timeit 100.divisors(method='sage')
100000 loops, best of 3: 14.1 µs per loop
}}}
As it is critical for some application, it is also available included as a
`cpdef` function named `_pari_divisors_small`.
--
Ticket URL: <http://trac.sagemath.org/ticket/19688>
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.