Drake
Drake C++ Documentation
eigen_pybind.h File Reference
#include <utility>
#include <Eigen/Dense>
#include "drake/bindings/pydrake/pydrake_pybind.h"
#include "drake/common/eigen_types.h"
Include dependency graph for eigen_pybind.h:

Namespaces

 drake
 
 drake::pydrake
 For more high-level information, see the Python Bindings technical notes.
 

Functions

template<typename Derived >
auto ToEigenRef (Eigen::VectorBlock< Derived > *derived)
 Provides a mutable Ref<> for a pointer. More...
 
template<typename T >
py::object ToArray (T *ptr, int size, py::tuple shape, py::return_value_policy policy=py_rvp::reference, py::handle parent=py::handle())
 Converts a raw array to a numpy array. More...
 
template<typename T >
py::object ToArray (const T *ptr, int size, py::tuple shape, py::return_value_policy policy=py_rvp::reference, py::handle parent=py::handle())
 Converts a raw array to a numpy array (const variant). More...
 
py::object WrapToMatchInputShape (py::handle func)
 Wraps a overload instance method to reshape the output to be the same as a given input argument. More...