ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libmdtools/Utility.cpp
(Generate patch)

Comparing trunk/OOPSE/libmdtools/Utility.cpp (file contents):
Revision 1039 by tim, Sat Feb 7 00:16:47 2004 UTC vs.
Revision 1064 by tim, Tue Feb 24 15:44:45 2004 UTC

# Line 24 | Line 24 | double copysign(double sign, double value){
24  
25    return sign >= 0 ? result : -result;
26   }
27 +
28 + double norm2(vector<double>& x){
29 +  return sqrt(dotProduct(x, x));
30 + }      

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines