MCMCLib is a C++ library of Markov Chain Monte Carlo methods.
Features
Author: Keith O'Hara
The library can be installed on Unix-alike systems via the standard ./configure && make
method:
# clone MCMCLib into the current directory git clone https://github.com/kthohr/mcmc ./mcmc # build and install cd ./mcmc ./configure -i "/usr/local" -p make make install
The last line will install MCMCLib to /usr/local
Configuration options: (see ./configure -h
)
-h
print help-i
install path; default: the build directory
-i "/usr/local"
-m
specify the BLAS and Lapack libraries to link against;
-m "-lopenblas"
or -m "-framework Accelerate"
-o
compiler optimization options;
-O3 -march=native -ffp-contract=fast -flto -DARMA_NO_DEBUG
-p
enable OpenMP parallelization features (recommended)-c
a coverage build (used with Codecov)-d
a 'development' build-g
a debugging build (optimization flags set to -O0 -g
)configure
script will search for Armadillo files in the standard locations: /usr/include
, /usr/local/include
, /opt/include
, /opt/local/include
. If the Armadillo header files are installed elsewhere, set the following environment variable before running configure
:
export ARMA_INCLUDE_PATH=/path/to/armadilloOtherwise the build script will download the required files from the Armadillo GitLab repository.