PLaSK library
Loading...
Searching...
No Matches
your_solver.cpp File Reference

Sample Python wrapper for your solver. More...

#include <cmath>
#include <plask/python.hpp>
#include "../your_solver_class_header.hpp"
Include dependency graph for your_solver.cpp:

Go to the source code of this file.

Functions

 BOOST_PYTHON_MODULE (solver_name)
 Initialization of your solver class to Python.
 

Detailed Description

Sample Python wrapper for your solver.

Definition in file your_solver.cpp.

Function Documentation

◆ BOOST_PYTHON_MODULE()

BOOST_PYTHON_MODULE ( solver_name  )

Initialization of your solver class to Python.

The solver_name should be changed to match the name of the directory with our solver (the one where you have put CMakeLists.txt). It will be visible from user interface under this name.

Definition at line 31 of file your_solver.cpp.