boost_number.cpp
Go to the documentation of this file.
1 //
2 // Copyright (c) 2022 INRIA
3 //
4 
6 
7 #include <eigenpy/eigenpy.hpp>
9 
10 namespace pinocchio
11 {
12  namespace python
13  {
15  {
17  };
18 
19  boost::python::object getScalarType()
20  {
21  namespace bp = boost::python;
22  PyTypeObject * pytype = const_cast<PyTypeObject *>(
23  bp::converter::registered_pytype_direct<PINOCCHIO_PYTHON_SCALAR_TYPE>::get_pytype());
24  return bp::object(bp::handle<>(bp::borrowed(reinterpret_cast<PyObject *>(pytype))));
25  }
26  } // namespace python
27 } // namespace pinocchio
boost::python
eigenpy.hpp
number.hpp
pinocchio::python::getScalarType
boost::python::object getScalarType()
Definition: boost_number.cpp:19
pinocchio::python::exposeSpecificTypeFeatures
void exposeSpecificTypeFeatures()
Definition: boost_number.cpp:14
python
mpfr.hpp
pinocchio::python::BoostNumberPythonVisitor::expose
static void expose(const std::string &type_name)
Definition: number.hpp:154
pinocchio
Main pinocchio namespace.
Definition: timings.cpp:27


pinocchio
Author(s):
autogenerated on Wed Jun 19 2024 02:41:09