From 471e96ff6f5f22018b782441c6a8df19d8294181 Mon Sep 17 00:00:00 2001 From: Nate Weibley Date: Thu, 23 Mar 2017 16:38:08 -0400 Subject: [PATCH] Provide const dataptr access --- matrix/Matrix.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/matrix/Matrix.hpp b/matrix/Matrix.hpp index 5223a8acc4..26fd13153f 100644 --- a/matrix/Matrix.hpp +++ b/matrix/Matrix.hpp @@ -59,6 +59,11 @@ public: return _data[0]; } + const Type *data() const + { + return _data[0]; + } + inline Type operator()(size_t i, size_t j) const { return _data[i][j];