Correct error in numpy.rst

This commit is contained in:
chenzy 2017-05-26 16:46:00 +08:00 committed by Jason Rhinelander
parent eee4f4fc7e
commit 39b9e04be8

View File

@ -99,7 +99,7 @@ buffer objects (e.g. a NumPy matrix).
info.strides[rowMajor ? 1 : 0] / (py::ssize_t)sizeof(Scalar));
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);
});