Revision: | 1816 |
Committed: | Wed Dec 1 19:10:51 2004 UTC (20 years, 5 months ago) by tim |
File size: | 274 byte(s) |
Log Message: | spell check |
# | Content |
---|---|
1 | #ifndef _UTILITY_H_ |
2 | #define _UTILITY_H_ |
3 | #include <vector> |
4 | #include <math.h> |
5 | |
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 |
Name | Value |
---|---|
svn:executable | * |