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 
utilities.h
Contains generic global functions designed particularly for the matlab interface.
arg
EIGEN_DEVICE_FUNC const EIGEN_STRONG_INLINE ArgReturnType arg() const
Definition: ArrayCwiseUnaryOps.h:66
pybind11.h
std
Definition: BFloat16.h:88
pybind11
Definition: wrap/pybind11/pybind11/__init__.py:1
eigen.h
PYBIND11_MODULE
PYBIND11_MODULE(templates_py, m_)
Definition: templates_pybind.cpp:15
operators.h
stl_bind.h


gtsam
Author(s):
autogenerated on Mon Jul 1 2024 03:04:24