Commit b464b944 authored by Davis King's avatar Davis King

changed to avoid compiler warning in visual studio

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402343
parent 8b768803
...@@ -1347,7 +1347,7 @@ namespace dlib ...@@ -1347,7 +1347,7 @@ namespace dlib
) )
{ {
typedef matrix_mulscal_exp<matrix_exp<EXP>,float > exp; typedef matrix_mulscal_exp<matrix_exp<EXP>,float > exp;
return matrix_exp<exp>(exp(m,1.0/s)); return matrix_exp<exp>(exp(m,1/s));
} }
template < template <
......
...@@ -110,7 +110,7 @@ namespace dlib ...@@ -110,7 +110,7 @@ namespace dlib
) )
{ {
++samples_seen; ++samples_seen;
const scalar_type xscale = 1.0/samples_seen; const scalar_type xscale = 1/samples_seen;
const scalar_type cscale = 1-xscale; const scalar_type cscale = 1-xscale;
train_and_maybe_test(x,cscale,xscale,false); train_and_maybe_test(x,cscale,xscale,false);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment