pybind11/docs/advanced/cast
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
..
chrono.rst Automate generation of reference docs with doxygen and breathe (#598) 2017-01-31 16:54:08 +01:00
custom.rst add note about custom type casters (fixes #480) 2016-11-04 11:06:22 +01:00
eigen.rst Eigen<->numpy referencing support 2017-02-24 23:19:50 +01:00
functional.rst Reorganize documentation 2016-10-20 15:21:34 +02:00
index.rst RFC - Add documentation for strings and Unicode issues (#636) 2017-02-02 13:56:31 +01:00
overview.rst Unicode fixes and docs (#624) 2017-02-14 11:08:19 +01:00
stl.rst minor stl caster clarifications 2017-02-17 12:59:32 +01:00
strings.rst RFC - Add documentation for strings and Unicode issues (#636) 2017-02-02 13:56:31 +01:00