ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/new_design/OOPSE-2.0/src/utils/Utility.hpp
(Generate patch)

Comparing:
trunk/OOPSE-2.0/src/utils/Utility.hpp (file contents), Revision 1490 by gezelter, Fri Sep 24 04:16:43 2004 UTC vs.
branches/new_design/OOPSE-2.0/src/utils/Utility.hpp (file contents), Revision 1818 by tim, Wed Dec 1 20:05:49 2004 UTC

# Line 2 | Line 2 | using namespace std;
2   #define _UTILITY_H_
3   #include <vector>
4   #include <math.h>
5 < using namespace std;
6 < double dotProduct(vector<double>& v1, vector<double>& v2);
7 < double norm2(vector<double>& x);
5 >
6 > inline double roundMe( double x ){
7 >  return ( x >= 0 ) ? floor( x + 0.5 ) : ceil( x - 0.5 );
8 > }
9 >
10   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines