Skip to main content

gmpy2 interface to GMP/MPIR, MPFR, and MPC for Python 2.7 and 3.5+

Project description

gmpy2 is an optimized, C-coded Python extension module that supports fast multiple-precision arithmetic. gmpy2 is based on the original gmpy module. gmpy2 adds support for correctly rounded multiple-precision real arithmetic (using the MPFR library) and complex arithmetic (using the MPC library).

gmpy2 2.1 was extensively refactored. Some of the significant changes are:

  • Support for thread-safe contexts and context methods
  • Interoperability with Cython extensions
  • mpz and mpq operation can release the GIL (controlled by the conntext)
  • Improved argument processing

gmpy2 is available at https://pypi.python.org/pypi/gmpy2/

Documentation is available at https://gmpy2.readthedocs.io/en/latest/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gmpy2-2.1.2.tar.gz (258.4 kB view hashes)

Uploaded source

Built Distributions

gmpy2-2.1.2-cp310-cp310-win_amd64.whl (1.1 MB view hashes)

Uploaded cp310

gmpy2-2.1.2-cp310-cp310-macosx_11_0_arm64.whl (655.3 kB view hashes)

Uploaded cp310

gmpy2-2.1.2-cp39-cp39-win_amd64.whl (1.1 MB view hashes)

Uploaded cp39

gmpy2-2.1.2-cp39-cp39-macosx_11_0_arm64.whl (655.3 kB view hashes)

Uploaded cp39

gmpy2-2.1.2-cp39-cp39-macosx_10_9_x86_64.whl (800.6 kB view hashes)

Uploaded cp39

gmpy2-2.1.2-cp38-cp38-win_amd64.whl (1.1 MB view hashes)

Uploaded cp38

gmpy2-2.1.2-cp38-cp38-macosx_11_0_arm64.whl (656.3 kB view hashes)

Uploaded cp38

gmpy2-2.1.2-cp38-cp38-macosx_10_9_x86_64.whl (802.2 kB view hashes)

Uploaded cp38

gmpy2-2.1.2-cp37-cp37m-win_amd64.whl (1.1 MB view hashes)

Uploaded cp37

gmpy2-2.1.2-cp36-cp36m-win_amd64.whl (1.1 MB view hashes)

Uploaded cp36

gmpy2-2.1.2-cp35-cp35m-win_amd64.whl (1.1 MB view hashes)

Uploaded cp35

gmpy2-2.1.2-cp27-cp27m-win_amd64.whl (1.1 MB view hashes)

Uploaded cp27

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page