ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/src/math/Vector.hpp
(Generate patch)

Comparing branches/development/src/math/Vector.hpp (file contents):
Revision 1850 by gezelter, Wed Feb 20 15:39:39 2013 UTC vs.
Revision 1877 by gezelter, Thu Jun 6 15:43:35 2013 UTC

# 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() {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines