Skip to content

Speed up Bell numbers#2515

Merged
fredrik-johansson merged 2 commits intoflintlib:mainfrom
fredrik-johansson:montgomery
Dec 3, 2025
Merged

Speed up Bell numbers#2515
fredrik-johansson merged 2 commits intoflintlib:mainfrom
fredrik-johansson:montgomery

Conversation

@fredrik-johansson
Copy link
Copy Markdown
Collaborator

This speeds up computing the $n$-th Bell number by using Montgomery arithmetic and enabling parallel computation in the multimodular algorithm.

n          flint-3.4          new          new (8 threads)
10000       0.223 s       0.155 s        0.040 s
100000     28.531 s      19.027 s        3.239 s
1000000        long          long      617.328 s

@fredrik-johansson fredrik-johansson merged commit 55493d0 into flintlib:main Dec 3, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant