Installation
One can install HepLib automatically or manually, the recommended one is to use the install.sh script or the makefile.
Install Automatically
One can install HepLib automatically with the all-in-one script install.sh or the all-in-one makefile.
wget https://heplib.github.io/install.sh
chmod +x install.sh
INSTALL_PATH=<INSTALL PATH> jn=<jn> ./install.shwget https://heplib.github.io/makefile
make INSTALL_PATH=<INSTALL PATH> jn=<jn><INSTALL PATH>the directory to which all external libraries/programs will be installed.<jn>the number of jobs in invokingmake -j $jn.
Install Manually
One can also install HepLib manually which is NOT recommended, including to install the required external libraries, external programs and HepLib iteself following the steps below.
1. Install External Libraries
GMP : it is required for MPFR and GiNaC.
curl -L -O https://gmplib.org/download/gmp/gmp-6.2.0.tar.gz
tar zxf gmp-6.2.0.tar.gz
cd gmp-6.2.0
./configure --prefix=$INSTALL_PATH
make -j 16
make installMPFR : it is used to handle the multiple precision in the numerical integration. MPFR needs to be compiled with the option
--enable-float128.
The quadruple precision type __float128 has been changed to _Float128 since MPFR 4.1.0, so we prefer the version MPFR 4.0.2 for the moment, furthermore the MPFR C++ wrapper is included in HepLib archive.
CLN : it is required for GiNaC.
GiNaC : The underlying language of HepLib, which is used for symbolic operations.
QHull : it is used for Sector Decompostion with the geometric strategy.
MinUit2 : it is used to find the minimum of a function.
CUBA : it is one of the numerical integrators.
2. Install External Programs
Fermat : it is used for matrix operation, multivariate rational polynormial simplification, etc..
Form : it is used for Dirac and Color matrix trace, Lorentz index contraction, etc..
FIRE : it is required for IBP reduction in
HepLib::IBP::FIREclass.
KIRA : it is required for IBP reduction in
HepLib::IBP::KIRAclass.
For installation on Mac OS, please refer to official page of KIRA.
3. Install HepLib
One can download the most recent version of HepLib as a compressed archive: HepLib.tar.gz, uncompress it and change current directory into HepLib/src by the commands:
Create a directory for cmake to build the library as follows:
Last updated