A few breaking changes for consistency just before the 1.0 release

1. Renamed PYTHON_* to PYBIND_* everywhere

2. Renamed pybind::array_dtype<> to pybind::array_t<>
This commit is contained in:
Wenzel Jakob
2015-10-13 17:38:22 +02:00
parent 19208fe9a4
commit b50872acf2
4 changed files with 22 additions and 22 deletions

View File

@@ -26,7 +26,7 @@ void init_ex10(py::module &m) {
// Vectorize a lambda function with a capture object (e.g. to exclude some arguments from the vectorization)
m.def("vectorized_func2",
[](py::array_dtype<int> x, py::array_dtype<float> y, float z) {
[](py::array_t<int> x, py::array_t<float> y, float z) {
return py::vectorize([z](int x, float y) { return my_func(x, y, z); })(x, y);
}
);