diff options
author | Ales Tamchyna <tamchyna@ufal.mff.cuni.cz> | 2015-01-06 12:57:38 +0300 |
---|---|---|
committer | Ales Tamchyna <tamchyna@ufal.mff.cuni.cz> | 2015-01-06 12:57:38 +0300 |
commit | c6f9a332f7411eabb463837fa2b3bb2946b06a71 (patch) | |
tree | 77bdfe287efebdfae5746a3a107658714feba56d /moses/Util.h | |
parent | 416c819f799654a6d2a798c8803ad8a610aa06d2 (diff) |
minor
Diffstat (limited to 'moses/Util.h')
-rw-r--r-- | moses/Util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/moses/Util.h b/moses/Util.h index 11a929b68..a595e9a3f 100644 --- a/moses/Util.h +++ b/moses/Util.h @@ -483,6 +483,9 @@ T log_sum (T log_a, T log_b) return ( v ); } +/** + * Compare floats for equality with some tolerance. + */ inline bool Equals(float a, float b) { return fabs(a - b) < FLOAT_EPSILON; |