mirror of
https://github.com/pybind/pybind11.git
synced 2025-03-12 07:49:28 +00:00
Merge pull request #198 from nils-werner/numpy-typo
Fixed typo in NumPy example which prevented compilation
This commit is contained in:
commit
93a317eca1
@ -1186,7 +1186,7 @@ simply using ``vectorize``).
|
||||
auto result = py::array(py::buffer_info(
|
||||
nullptr, /* Pointer to data (nullptr -> ask NumPy to allocate!) */
|
||||
sizeof(double), /* Size of one item */
|
||||
py::format_descriptor<double>::value, /* Buffer format */
|
||||
py::format_descriptor<double>::value(), /* Buffer format */
|
||||
buf1.ndim, /* How many dimensions? */
|
||||
{ buf1.shape[0] }, /* Number of elements for each dimension */
|
||||
{ sizeof(double) } /* Strides for each dimension */
|
||||
|
Loading…
Reference in New Issue
Block a user