#13199: Use FLINT to compute the partition function
---------------------------------+------------------------------------------
Reporter: fredrik.johansson | Owner: sage-combinat
Type: enhancement | Status: new
Priority: major | Milestone: sage-5.2
Component: combinatorics | Keywords:
Work issues: | Report Upstream: N/A
Reviewers: | Authors: Fredrik Johansson
Merged in: | Dependencies: #12173
Stopgaps: |
---------------------------------+------------------------------------------
Before:
{{{
sage: %timeit number_of_partitions(1)
625 loops, best of 3: 2.09 µs per loop
sage: %timeit number_of_partitions(10^3)
625 loops, best of 3: 197 µs per loop
sage: %timeit number_of_partitions(10^6)
25 loops, best of 3: 32.8 ms per loop
sage: %time number_of_partitions(10^9);
CPU times: user 37.92 s, sys: 0.00 s, total: 37.92 s
Wall time: 37.93 s
}}}
After:
{{{
sage: %timeit number_of_partitions(1)
625 loops, best of 3: 1.94 µs per loop
sage: %timeit number_of_partitions(10^3)
625 loops, best of 3: 51.4 µs per loop
sage: %timeit number_of_partitions(10^6)
125 loops, best of 3: 2.66 ms per loop
sage: %time number_of_partitions(10^9);
CPU times: user 0.47 s, sys: 0.00 s, total: 0.47 s
Wall time: 0.48 s
}}}
TODO: should add a 64-bit only test to check that evaluation works with n
>= 2^32.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13199>
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 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.