pybind11/docs/advanced
Jason Rhinelander 17d0283eca Eigen<->numpy referencing support
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.
2017-02-24 23:19:50 +01:00
..
cast Eigen<->numpy referencing support 2017-02-24 23:19:50 +01:00
pycpp Minor fixes (#613) 2017-01-31 17:28:29 +01:00
classes.rst Enable static properties (py::metaclass) by default 2017-02-23 15:45:26 +01:00
exceptions.rst Reorganize documentation 2016-10-20 15:21:34 +02:00
functions.rst Eigen<->numpy referencing support 2017-02-24 23:19:50 +01:00
misc.rst Documentation: explicitly call out that the GIL is held (#615) 2017-01-31 17:06:13 +01:00
smart_ptrs.rst Improve custom holder support (#607) 2017-01-31 17:05:44 +01:00