Commit 2776b42a authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

propagated fix for Matx(Matx::diag_type) constructor from branch 2.3 to trunk

parent 25887e69
......@@ -348,7 +348,7 @@ Matx<_Tp,m,n> Matx<_Tp,m,n>::diag(const Matx<_Tp,MIN(m,n),1>& d)
{
Matx<_Tp,m,n> M;
for(int i = 0; i < MIN(m,n); i++)
M(i,i) = d[i];
M(i,i) = d(i, 0);
return M;
}
......
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