| 65 |  | class Vector{ | 
| 66 |  | public: | 
| 67 |  |  | 
| 68 | + | typedef Real ElemType; | 
| 69 | + | typedef Real* ElemPoinerType; | 
| 70 | + |  | 
| 71 |  | /** default constructor */ | 
| 72 |  | inline Vector(){ | 
| 73 |  | for (unsigned int i = 0; i < Dim; i++) | 
| 142 |  | return data_[i]; | 
| 143 |  | } | 
| 144 |  |  | 
| 145 | + | /** Copy the internal data to an array*/ | 
| 146 | + | void getArray(Real* array) { | 
| 147 | + | for (unsigned int i = 0; i < Dim; i ++) { | 
| 148 | + | array[i] = data_[i]; | 
| 149 | + | } | 
| 150 | + | } | 
| 151 | + |  | 
| 152 | + | /** Returns the pointer of internal array */ | 
| 153 | + | Real* getArrayPointer() { | 
| 154 | + | return data_; | 
| 155 | + | } | 
| 156 | + |  | 
| 157 |  | /** | 
| 158 |  | * Tests if this vetor is equal to other vector | 
| 159 |  | * @return true if equal, otherwise return false |