From 13036385b45a4777dff44790480ea03233af20d0 Mon Sep 17 00:00:00 2001
From: Sebastien Blaise <sebastien.blaise@uclouvain.be>
Date: Fri, 9 May 2014 13:05:47 +0000
Subject: [PATCH] fullMatrix: added getDataPtr const and non const

---
 Numeric/fullMatrix.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/Numeric/fullMatrix.h b/Numeric/fullMatrix.h
index c1c03cd2df..e844ee725b 100644
--- a/Numeric/fullMatrix.h
+++ b/Numeric/fullMatrix.h
@@ -111,6 +111,13 @@ class fullVector
   */
   inline const scalar * getDataPtr() const { return _data; }
 
+  /**
+     @return Returns a  pointer to this fullVector data.@n
+     This pointer will point to the following memory segment:
+     [(*this)(0), (*this)(1), ..., (*this)(this->size() - 1)].
+  */
+  inline scalar * getDataPtr() { return _data; }
+
   /**
      @param i A vector index between 0 and size() - 1.
      @returns Returns the ith scalar of this fullVector.
@@ -444,6 +451,9 @@ class fullMatrix
     return (*this)(r, c);
   }
 
+  inline const scalar * getDataPtr() const { return _data; }
+  inline scalar * getDataPtr() { return _data; }
+
   // operations
   inline void set(int r, int c, scalar v){
     #ifdef _DEBUG
-- 
GitLab