1 #include "pybind11/pybind11.h"
2 #include "pybind11/stl_bind.h"
4 #define FORCE_IMPORT_ARRAY
7 #if defined(__GNUC__) && !defined(__clang__)
10 inline void define_allocators()
12 std::allocator<int> a0;
13 std::allocator<double> a1;
18 namespace py = pybind11;
20 using pybind11::return_value_policy;
26 py::class_<RDLS_base>(m,
"cRDLS_base")
28 .def(
"calculateResidual" , &RDLS_base::calculateResidual )
29 .def(
"calculateJacobian" , &RDLS_base::calculateJacobian )
30 .def(
"calculateResidual_ellipticRedist" , &RDLS_base::calculateResidual_ellipticRedist )
31 .def(
"calculateJacobian_ellipticRedist" , &RDLS_base::calculateJacobian_ellipticRedist )
32 .def(
"normalReconstruction" , &RDLS_base::normalReconstruction )
33 .def(
"calculateMetricsAtEOS" , &RDLS_base::calculateMetricsAtEOS, return_value_policy::take_ownership);