diff --git a/docs/advanced/pycpp/numpy.rst b/docs/advanced/pycpp/numpy.rst index fbcebc421..964b1827c 100644 --- a/docs/advanced/pycpp/numpy.rst +++ b/docs/advanced/pycpp/numpy.rst @@ -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( - static_cat(info.ptr), info.shape[0], info.shape[1], strides); + static_cast(info.ptr), info.shape[0], info.shape[1], strides); new (&m) Matrix(map); });