diff --git a/Numeric/fullMatrix.h b/Numeric/fullMatrix.h index c1c03cd2df697dde101bf33984c2dae48644c9ff..e844ee725b49bd3edb844c930257de9ca82a8e7f 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