Installation¶
Python Package¶
Prerequisites¶
Install GSL (GNU Scientific Library):
Install from Source¶
# Clone the repository
git clone https://github.com/yourusername/gp4c.git
cd gp4c
# Install in development mode
pip install -e .
# Or with optional dependencies
pip install -e ".[dev,viz]"
C Library¶
The core GP sampler can be used directly in C/C++ projects without Python.
Quick Install¶
CMake Build¶
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build . --parallel
sudo cmake --install .
Using the Library¶
Link against gp4c in your C projects:
See C Integration for detailed examples.