Usage in C++
The usage of HepLib is similar to other C++ library by including the proper header files in the C++ source code, compiling the program and linking with HepLib and other necessary libraries.
1. Prepare the C++ Code
The above code trace.cpp
shows how to perform the D-dimensional trace on a Dirac-𝛾 chain:
2. Compile and Run
One can compile the
trace.cpp
usingheplib++
and run it as follows:
One can also compile the program with
pkg-config
as follows:
One can also provide the
g++
flags explicitly as follows:
Last updated