Commit 39b9e04b by chenzy Committed by Jason Rhinelander

Correct error in numpy.rst

parent eee4f4fc
...@@ -99,7 +99,7 @@ buffer objects (e.g. a NumPy matrix). ...@@ -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);
}); });
......
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