Open Issues Need Help
View All on GitHubSafe Python bindings to the GNU GMP library
Safe Python bindings to the GNU GMP library
AI Summary: This issue requests adding new tests to ensure API compatibility between `int` and `mpz` types for several mathematical functions. The tests should specifically check the signatures of `comb`, `gcd/lcm`, `factorial`, `isqrt`, and `perm` to confirm they handle both integer types correctly.
Safe Python bindings to the GNU GMP library
Safe Python bindings to the GNU GMP library
AI Summary: This issue proposes adding an `lcm()` function to the codebase, primarily to ensure compatibility with Python's standard library. Developers are advised to refer to the existing `mpz_lcm()` implementation for guidance on how to create this new function. The task involves implementing `lcm()`, likely by adapting or wrapping the logic from the specified arbitrary-precision integer LCM function.
Safe Python bindings to the GNU GMP library
AI Summary: This issue requests the addition of a `comb()` (combinations) function to the library. The primary motivation is to ensure compatibility with Python's standard library. Implementers are directed to utilize existing `mpz_bin_*()` functions and to refer to the implementation of the `fac()` (factorial) function as a guide.
Safe Python bindings to the GNU GMP library
Safe Python bindings to the GNU GMP library
Safe Python bindings to the GNU GMP library