changed to avoid compiler warning in visual studio

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402343
This commit is contained in:
Davis King 2008-06-19 02:34:53 +00:00
parent 8b7688034d
commit b464b944c3
2 changed files with 2 additions and 2 deletions

View File

@ -1347,7 +1347,7 @@ namespace dlib
)
{
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 <

View File

@ -110,7 +110,7 @@ namespace dlib
)
{
++samples_seen;
const scalar_type xscale = 1.0/samples_seen;
const scalar_type xscale = 1/samples_seen;
const scalar_type cscale = 1-xscale;
train_and_maybe_test(x,cscale,xscale,false);
}