templates_pybind.cpp
Go to the documentation of this file.
1 #include <pybind11/eigen.h>
2 #include <pybind11/stl_bind.h>
3 #include <pybind11/pybind11.h>
4 #include <pybind11/operators.h>
5 #include "gtsam/nonlinear/utilities.h" // for RedirectCout.
6 
7 
8 
9 
10 
11 using namespace std;
12 
13 namespace py = pybind11;
14 
15 PYBIND11_MODULE(templates_py, m_) {
16  m_.doc() = "pybind11 wrapper of templates_py";
17 
18 
19  py::class_<TemplatedConstructor, std::shared_ptr<TemplatedConstructor>>(m_, "TemplatedConstructor")
20  .def(py::init<>())
21  .def(py::init<const string&>(), py::arg("arg"))
22  .def(py::init<const int&>(), py::arg("arg"))
23  .def(py::init<const double&>(), py::arg("arg"));
24 
25  py::class_<ScopedTemplate<Result>, std::shared_ptr<ScopedTemplate<Result>>>(m_, "ScopedTemplateResult")
26  .def(py::init<const Result::Value&>(), py::arg("arg"));
27 
28 
29 #include "python/specializations.h"
30 
31 }
32 
Definition: BFloat16.h:88
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const ArgReturnType arg() const
PYBIND11_MODULE(templates_py, m_)


gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:36:35