1
0
Fork 0
mirror of https://github.com/gwm17/catima.git synced 2024-05-19 23:33:19 -04:00
catima/docs
2021-06-22 00:47:38 +02:00
..
api.rst docs 2019-10-22 20:59:21 +02:00
catima_calculator.md Update catima_calculator.md 2020-11-30 00:59:44 +01:00
catima_manual.md docs 2019-10-22 20:59:21 +02:00
conf.py Update conf.py 2019-10-22 21:25:52 +02:00
Doxyfile docs rearranged 2019-10-22 19:34:09 +02:00
index.rst Update index.rst 2020-11-30 00:52:37 +01:00
Makefile docs rearranged 2019-10-22 19:34:09 +02:00
pycatima.md minor docs 2021-06-22 00:47:38 +02:00
README.md minor docs 2021-06-22 00:47:38 +02:00
requirements.txt Create requirements.txt 2019-10-22 21:35:53 +02:00

Installation

CMake is used to build the library. For default build use:

> mkdir build
> cd build
> cmake ../
> make

after the compilation the libraries and headers must be either installed system-wide by make install or PATH and LD_LIBRARY_PATH must be adjusted to point to headers and library files. The default install path can be change, ie: cmake -DCMAKE_INSTALL_PREFIX=/opt/catima

Alternative to the system-wide installation is to adjust library path and include paths. This can be done sourcing the init.sh file, which is generated in the build directory:

source init.sh

Python Module

Python module can be installed also using pip:

pip install pycatima

cmake options

compile options, enable or disable with cmake:

cmake ../ -D[OPTION]

available options:

  • BUILD_SHARED_LIBS - if ON shared library is build, otherwise static
  • PYTHON_MODULE - enable/disable building of the python bindigs, pybind11 is required to build the catima python module, default OFF
  • APPS - build command line app, default ON
  • TESTS - build tests, default OFF
  • EXAMPLES - build examples, default OFF
  • DOCS - prepare doxygen documentation (after cmake, make docs needs to be executed)
  • GENERATE_DATA - makes program to re-generate precalculated tables (ie precalculated LS coefficients), default:OFF
  • THIN_TARGET_APPROXIMATION - compile the library with thin target approximation, default: ON
  • GSL_INTEGRATION - use GSL integration functions, otherwise use built-in integrator, default: OFF
  • GLOBAL - compile with GLOBAL code (source not included at the moment, needs to be manually added to global directory, default:OFF)
  • STORE_SPLINES - store splines in cache, if disabled datapoints are stored and splines are recreated, default ON

ie:

cmake -DPYTHON_MODULE=ON -DEXAMPLES=ON ../