--- trunk/OOPSE/libmdtools/Utility.cpp 2004/02/07 00:16:47 1039 +++ trunk/OOPSE/libmdtools/Utility.cpp 2004/02/24 15:44:45 1064 @@ -24,3 +24,7 @@ double copysign(double sign, double value){ return sign >= 0 ? result : -result; } + +double norm2(vector& x){ + return sqrt(dotProduct(x, x)); +}