
![]() | SWIG is easy to use with C code |
![]() | C++ code is also possible, but various compilation and linking techniques become more intricate |
![]() | C++ classes can be used as if they were implemented in Python |
![]() | Example: class Statistics in the stochastic beam application,
see
src/pycf/sbeam/C/swig-MonteCarloand the book for details |