Commit a708705f authored by Davis King's avatar Davis King

Fixed a bug in the covariance() function that prevented it from compiling

sometimes.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402540
parent 1db20426
......@@ -2957,7 +2957,7 @@ namespace dlib
matrix<typename EXP::type::type, EXP::type::NR, EXP::type::NR, typename EXP::mem_manager_type> cov(m(0).nr(),m(0).nr());
set_all_elements(cov,0);
const matrix<double,4,1, typename EXP::mem_manager_type> avg = mean(m);
const matrix<double,EXP::type::NR,EXP::type::NC, typename EXP::mem_manager_type> avg = mean(m);
for (long r = 0; r < m.nr(); ++r)
{
......
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