| # | Line 196 | Line 196 | namespace OpenMD { | |
|---|---|---|
| 196 | inline bool operator !=(const Vector<Real, Dim>& v) { | |
| 197 | return !(*this == v); | |
| 198 | } | |
| 199 | + | |
| 200 | + | /** Zeros out the values in this vector in place */ |
| 201 | + | inline void zero() { |
| 202 | + | for (unsigned int i = 0; i < Dim; i++) |
| 203 | + | this->data_[i] = 0; |
| 204 | + | } |
| 205 | ||
| 206 | /** Negates the value of this vector in place. */ | |
| 207 | inline void negate() { | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines |
| > | Changed lines |