function that runs in C++ and accepts reference to dynamic histogram
| 8 | |
| 9 | // function that runs in C++ and accepts reference to dynamic histogram |
| 10 | void process(bh::histogram<>& h) { |
| 11 | // fill histogram, in reality this would be arbitrarily complex code |
| 12 | for (int i = 0; i < 4; ++i) h(0.25 * i, i); |
| 13 | } |
| 14 | |
| 15 | // a minimal Python module, which exposes the process function to Python |
| 16 | BOOST_PYTHON_MODULE(cpp_filler) { bp::def("process", process); } |
nothing calls this directly
no outgoing calls
no test coverage detected