mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-25 22:52:01 +00:00
17d0283eca
This commit largely rewrites the Eigen dense matrix support to avoid copying in many cases: Eigen arguments can now reference numpy data, and numpy objects can now reference Eigen data (given compatible types). Eigen::Ref<...> arguments now also make use of the new `convert` argument use (added in PR #634) to avoid conversion, allowing `py::arg().noconvert()` to be used when binding a function to prohibit copying when invoking the function. Respecting `convert` also means Eigen overloads that avoid copying will be preferred during overload resolution to ones that require copying. This commit also rewrites the Eigen documentation and test suite to explain and test the new capabilities. |
||
---|---|---|
.. | ||
chrono.rst | ||
custom.rst | ||
eigen.rst | ||
functional.rst | ||
index.rst | ||
overview.rst | ||
stl.rst | ||
strings.rst |