mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-25 06:35:12 +00:00
Correct error in numpy.rst
This commit is contained in:
parent
eee4f4fc7e
commit
39b9e04be8
@ -99,7 +99,7 @@ buffer objects (e.g. a NumPy matrix).
|
|||||||
info.strides[rowMajor ? 1 : 0] / (py::ssize_t)sizeof(Scalar));
|
info.strides[rowMajor ? 1 : 0] / (py::ssize_t)sizeof(Scalar));
|
||||||
|
|
||||||
auto map = Eigen::Map<Matrix, 0, Strides>(
|
auto map = Eigen::Map<Matrix, 0, Strides>(
|
||||||
static_cat<Scalar *>(info.ptr), info.shape[0], info.shape[1], strides);
|
static_cast<Scalar *>(info.ptr), info.shape[0], info.shape[1], strides);
|
||||||
|
|
||||||
new (&m) Matrix(map);
|
new (&m) Matrix(map);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user