bindings
python
extra
mpfr
boost_number.cpp
Go to the documentation of this file.
1
//
2
// Copyright (c) 2022 INRIA
3
//
4
5
#include "
pinocchio/bindings/python/context/mpfr.hpp
"
6
7
#include <
eigenpy/eigenpy.hpp
>
8
#include "
pinocchio/bindings/python/math/multiprecision/boost/number.hpp
"
9
10
namespace
pinocchio
11
{
12
namespace
python
13
{
14
void
exposeSpecificTypeFeatures
()
15
{
16
BoostNumberPythonVisitor<PINOCCHIO_PYTHON_SCALAR_TYPE>::expose
(
"mpfr"
);
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 Sun Dec 22 2024 03:41:06