Commit 4555f9ac authored by berak's avatar berak

svmsgd.cpp, fix #6248

add a cast to double, to make vs compilers happy
parent fbc221d3
......@@ -153,7 +153,7 @@ void SVMSGDImpl::normalizeSamples(Mat &samples, Mat &average, float &multiplier)
double normValue = norm(samples);
multiplier = static_cast<float>(sqrt(samples.total()) / normValue);
multiplier = static_cast<float>(sqrt(static_cast<double>(samples.total())) / normValue);
samples *= multiplier;
}
......
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