A MATLAB MEX-Interface for the GNU MPFR Library.
This work and all included libraries are licensed under the terms of the LGPLv3.
The Matlab/Octave toolbox INTLAB is required and in order to build MEX-files in MATLAB, a supported compiler:
-
Microsoft Windows:
- Microsoft Visual C++ 2017 (Community, Professional, or Enterprise)
- The GNU MPFR and MPIR libraries are accessible by the precompiled
static library file
mpfr.lib
by Brian Gladman, located in thevendor
directory.
-
GNU/Linux:
-
GNU GCC and the development libraries libgmp-dev and libmpfr-dev.
For the Ubuntu or Debian Linux distribution, all dependencies are easily obtained by running the command:
sudo apt-get install gcc libgmp-dev libmpfr-dev
For other Linux distributions the installation command and the package names might be slightly different.
-
After the compiler installation verify from the MATLAB command prompt, that the compiler is recognized correctly:
mex -setup
In MATLAB one has to set the current directory to the root directory of this project. Then in the command prompt execute
startup
to invoke the compilation process.