mirror of
https://github.com/RYDE-WORK/pybind11.git
synced 2026-02-03 14:03:30 +08:00
documentation fix (fixes #290)
This commit is contained in:
parent
a771e362df
commit
f38f359f96
@ -1374,7 +1374,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 */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user