Revision: | 1727 |
Committed: | Thu Nov 11 16:41:58 2004 UTC (19 years, 10 months ago) by tim |
File size: | 294 byte(s) |
Log Message: | add Snapshot.cpp, remove useless mpiSimulation |
# | User | Rev | Content |
---|---|---|---|
1 | gezelter | 1490 | #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 | tim | 1727 | |
9 | inline double roundMe( double x ){ | ||
10 | return ( x >= 0 ) ? floor( x + 0.5 ) : ceil( x - 0.5 ); | ||
11 | } | ||
12 | |||
13 | gezelter | 1490 | #endif |
Name | Value |
---|---|
svn:executable | * |