# | Line 39 | Line 39 | namespace oopse { | |
---|---|---|
39 | ||
40 | namespace oopse { | |
41 | ||
42 | < | const double epsilon = 0.000001; |
42 | > | static const double epsilon = 0.000001; |
43 | ||
44 | template<typename T> | |
45 | inline bool equal(T e1, T e2) { | |
# | Line 142 | Line 142 | namespace oopse { | |
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_; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |