Commit f7048f25 by Nils Werner

Fixed typo in NumPy example which prevented compilation

parent 54b4acea
...@@ -1186,7 +1186,7 @@ simply using ``vectorize``). ...@@ -1186,7 +1186,7 @@ simply using ``vectorize``).
auto result = py::array(py::buffer_info( auto result = py::array(py::buffer_info(
nullptr, /* Pointer to data (nullptr -> ask NumPy to allocate!) */ nullptr, /* Pointer to data (nullptr -> ask NumPy to allocate!) */
sizeof(double), /* Size of one item */ 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.ndim, /* How many dimensions? */
{ buf1.shape[0] }, /* Number of elements for each dimension */ { buf1.shape[0] }, /* Number of elements for each dimension */
{ sizeof(double) } /* Strides for each dimension */ { sizeof(double) } /* Strides for each dimension */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment