gr_generic_fac, gr_generic_fac_ui, gr_generic_fac_fmpz, gr_generic_fac_vec
Synopsis
#include <flint/gr_special.h>Factorials: fmpz_fac_ui in \mathbb{Z}; a table for small n; in rings of finite characteristic, products of several consecutive integers per multiplication, and n_factorial_fast_mod2_preinv for nmod; numerically with arb_fac_ui in rings with a real precision; otherwise exactly in \mathbb{Z} and converted. gr_generic_fac uses gr_fac_ui for integer arguments and \Gamma(x + 1) otherwise.
Cite this page
The FLINT team, “gr_generic_fac, gr_generic_fac_ui, gr_generic_fac_fmpz, gr_generic_fac_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_fac.html (generated 2026-10-20).
@misc{flint-doc-gr-special-gr-generic-fac,
author = {{The FLINT team}},
title = {{gr\_generic\_fac, gr\_generic\_fac\_ui, gr\_generic\_fac\_fmpz, gr\_generic\_fac\_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_fac.html},
note = {Generated 2026-10-20}
}