--- trunk/OOPSE-4/src/math/Vector.hpp 2004/10/19 21:28:55 1603 +++ trunk/OOPSE-4/src/math/Vector.hpp 2004/10/21 21:31:39 1630 @@ -65,6 +65,9 @@ namespace oopse { class Vector{ public: + typedef Real ElemType; + typedef Real* ElemPoinerType; + /** default constructor */ inline Vector(){ for (unsigned int i = 0; i < Dim; i++) @@ -139,6 +142,11 @@ namespace oopse { return data_[i]; } + /** Returns the pointer of internal array */ + Real* getArrayPointer() { + return data_; + } + /** * Tests if this vetor is equal to other vector * @return true if equal, otherwise return false