Commit a2880a54 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

fixed Matx<m, n>::diag(const Matx<m, n>::diag_type& d) constructor.

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