Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 1.62 KB

README.md

File metadata and controls

26 lines (16 loc) · 1.62 KB

JGMP

Java bindings for the GMP Library.

The GNU Multiple Precision Arithmetic Library (GMP) is a widely used library for computing with arbitrary precision arithmetic. The library has bindings for many programming languages, including .NET, OCaml, Perl, PHP, Python, R, Ruby, and Rust, with the notable exception of Java.

The JGMP library provides Java bindings and wrappers for using GMP from within any JVM-based language. It should work with all GMP versions from 6.1.0 onward. The JGMP library has been tested on Linux, Windows 10 and mac OS (on the x86-64 architecture) with GMP 6.2.1.

The documentation is available on javadoc.io.

A set of benchmarks and examples is available in JGMPBenchmarks.

Installation instructions

JGMP is available on Maven Central Repository using groupId it.unich.jgmp and artifactId jgmp.

Before working with JGMP you need to install the native GNU Multiple Precision Arithmetic Library (GMP). The native library is loaded by a static class initializer using the NativeLibrary.getInstance method of JNA, and it must be placed in a path where it is discoverable.

In Linux and macOS you may generally install GMP with your preferite package manager. In Windows you can put the gmp.dll file directly in the main folder of the application using JGMP.


Authors: Gianluca Amato and Francesca Scozzari