- Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.cc
More file actions
Latest commit
11 lines (9 loc) · 665 Bytes
/
Copy pathpackage.cc
File metadata and controls
11 lines (9 loc) · 665 Bytes
1
2
3
4
5
6
7
8
9
10
11
#include"code.hh"
#include<pybind11/pybind11.h>
namespacepy= pybind11;
PYBIND11_MODULE(__simple_cpp_python, m) {
m.doc() = "pybind11 example plugin"; // optional module docstring
m.def("full_cpp", &full_cpp, "A function which computes the sum of Lagrangian's trigonometric identities - full c++");
m.def("cpp_outer_loop_gil", &cpp_outer_loop_gil, "A function which computes the sum of Lagrangian's trigonometric identities - mixed c++ / python");
m.def("cpp_outer_loop_process", &cpp_outer_loop_process, "A function which computes the sum of Lagrangian's trigonometric identities - mixed c++ / python with multiprocessed inner python loop");
}