mirror of https://github.com/davisking/dlib.git
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:
parent
8b7688034d
commit
b464b944c3
|
@ -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 <
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue