Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <hieuhoang@gmail.com>2014-09-30 15:25:36 +0400
committerHieu Hoang <hieuhoang@gmail.com>2014-09-30 15:25:36 +0400
commitc40faed0d6b22faa4acd22414d7a893ceca781e0 (patch)
tree6bf08ecd2af005e443e68bc461831ba6f66c2a10 /moses/Util.h
parent85261aa190ee8e56cc84f79fbd36561a75ace146 (diff)
separate out class TranslationTask into it's on file
Diffstat (limited to 'moses/Util.h')
-rw-r--r--moses/Util.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/moses/Util.h b/moses/Util.h
index 24a4e2c28..d4c715ab8 100644
--- a/moses/Util.h
+++ b/moses/Util.h
@@ -431,7 +431,15 @@ T log_sum (T log_a, T log_b)
return ( v );
}
-
+/** Enforce rounding */
+inline void fix(std::ostream& stream, size_t size)
+{
+ stream.setf(std::ios::fixed);
+ stream.precision(size);
}
+
+
+} // namespace
+
#endif