gr_generic_partitions_fmpz, gr_generic_partitions_ui, gr_generic_partitions_vec
Synopsis
#include <flint/gr_special.h>Partition numbers: partitions_fmpz_ui (the Hardy–Ramanujan–Rademacher formula [Joh2012]) in \mathbb{Z}, numerically in rings with a real precision, and otherwise exactly and converted. The vec version uses arith_number_of_partitions_vec in \mathbb{Z} and arith_number_of_partitions_nmod_vec for nmod (power series inversion of \prod (1 - x^k)), numerical values in rings with a real precision, and otherwise exact values converted.
References#
- [Joh2012] F. Johansson, "Efficient implementation of the Hardy-Ramanujan-Rademacher formula", LMS Journal of Computation and Mathematics, Volume 15 (2012), 341-359, http://journals.cambridge.org/action/displayAbstract?fromPage=online&aid=8710297
Cite this page
The FLINT team, “gr_generic_partitions_fmpz, gr_generic_partitions_ui, gr_generic_partitions_vec (gr_special.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/gr_special/gr_generic_partitions_fmpz.html (generated 2026-10-20).
@misc{flint-doc-gr-special-gr-generic-partitions-fmpz,
author = {{The FLINT team}},
title = {{gr\_generic\_partitions\_fmpz, gr\_generic\_partitions\_ui, gr\_generic\_partitions\_vec (gr\_special.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/gr_special/gr_generic_partitions_fmpz.html},
note = {Generated 2026-10-20}
}