ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/new_design/OOPSE-3.0/src/utils/Utility.hpp
Revision: 1727
Committed: Thu Nov 11 16:41:58 2004 UTC (19 years, 7 months ago) by tim
File size: 294 byte(s)
Log Message:
add Snapshot.cpp, remove useless mpiSimulation

File Contents

# Content
1 #ifndef _UTILITY_H_
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);
8
9 inline double roundMe( double x ){
10 return ( x >= 0 ) ? floor( x + 0.5 ) : ceil( x - 0.5 );
11 }
12
13 #endif

Properties

Name Value
svn:executable *