From 39b9e04be8bc9655dc5198a4e3e54ce5f6c55f2b Mon Sep 17 00:00:00 2001 From: chenzy Date: Fri, 26 May 2017 16:46:00 +0800 Subject: [PATCH] Correct error in numpy.rst --- docs/advanced/pycpp/numpy.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); });