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

github.com/moses-smt/nplm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRico Sennrich <rico.sennrich@gmx.ch>2015-08-27 16:12:52 +0300
committerRico Sennrich <rico.sennrich@gmx.ch>2015-08-27 16:12:52 +0300
commit9dea3fe1329ce392b9e420c89663f7bddabb068a (patch)
treecec3017bade98c13fee73edd817d228cf4214abe /src/clipper.h
parent55bf63ddd73978b46e19f3d8c5606d5677cf560f (diff)
Makefile option (-DNPLM_DOUBLE_PRECISION) to switch between double and float.
Diffstat (limited to 'src/clipper.h')
-rw-r--r--src/clipper.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/clipper.h b/src/clipper.h
index dda5c4d..e8c96a6 100644
--- a/src/clipper.h
+++ b/src/clipper.h
@@ -3,7 +3,7 @@
namespace nplm {
struct Clipper{
- double operator() (double x) const {
+ user_data_t operator() (user_data_t x) const {
return std::min(0.5, std::max(x,-0.5));
//return(x);
}