#10170: Speed up the computation of Bell numbers
------------------------------+---------------------------------------------
Reporter: gerbicz | Owner: sage-combinat
Type: enhancement | Status: needs_review
Priority: major | Milestone:
Component: combinatorics | Keywords: bell number
Author: Robert Gerbicz | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
------------------------------+---------------------------------------------
Changes (by gerbicz):
* status: needs_info => needs_review
Comment:
Replying to [comment:1 jbandlow]:
> Hello and thanks for the patch! I'm curious, have you compared your
solution with wrapping mpmath directly? For example,
>
> {{{
> sage: import mpmath
> sage: mpmath.bell?
> }}}
Yes, but times are not saved I will rerun them: here are the timings for
mpmath:
n time (Wall time)
300 0.02 sec.
1000 0.06 sec.
3000 0.41 sec.
10000 10.26 sec.
30000 168.27 sec.
100000 (still computing)
So here mpmath is about 2-4 times slower, and seems that using more memory
than my code.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10170#comment:2>
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.