mirror of
https://github.com/pybind/pybind11.git
synced 2026-06-06 06:11:25 +00:00
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:
@@ -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);
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user