Support arrays inside PYBIND11_NUMPY_DTYPE (#832)

Resolves #800.

Both C++ arrays and std::array are supported, including mixtures like
std::array<int, 2>[4]. In a multi-dimensional array of char, the last
dimension is used to construct a numpy string type.
This commit is contained in:
Bruce Merry
2017-05-10 10:21:01 +02:00
committed by Dean Moldovan
parent 78f1dcf98f
commit 8e0d832c7d
4 changed files with 149 additions and 0 deletions

View File

@@ -198,6 +198,10 @@ expects the type followed by field names:
/* now both A and B can be used as template arguments to py::array_t */
}
The structure should consist of fundamental arithmetic types, previously
registered substructures, and arrays of any of the above. Both C++ arrays and
``std::array`` are supported.
Vectorizing functions
=====================