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

Comparing branches/new_design/OOPSE-3.0/src/utils/Utility.hpp (file contents):
Revision 1683, Thu Oct 28 22:34:02 2004 UTC vs.
Revision 1727 by tim, Thu Nov 11 16:41:58 2004 UTC

# Line 5 | Line 5 | double norm2(vector<double>& x);
5   using namespace std;
6   double dotProduct(vector<double>& v1, vector<double>& v2);
7   double norm2(vector<double>& x);
8 +
9 + inline double roundMe( double x ){
10 +  return ( x >= 0 ) ? floor( x + 0.5 ) : ceil( x - 0.5 );
11 + }
12 +
13   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines