Commit 4c49c5b2 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

fixed repeated calculations in cvsolve (thanks to denisstack for the fix)

parent 1d631127
...@@ -528,9 +528,9 @@ bool solve( const Mat& src, const Mat& _src2, Mat& dst, int method ) ...@@ -528,9 +528,9 @@ bool solve( const Mat& src, const Mat& _src2, Mat& dst, int method )
result = false; result = false;
} }
} }
return result;
} }
{
double rcond=-1, s1=0, work1=0, *work=0, *s=0; double rcond=-1, s1=0, work1=0, *work=0, *s=0;
float frcond=-1, fs1=0, fwork1=0, *fwork=0, *fs=0; float frcond=-1, fs1=0, fwork1=0, *fwork=0, *fs=0;
integer m = src.rows, m_ = m, n = src.cols, mn = std::max(m,n), integer m = src.rows, m_ = m, n = src.cols, mn = std::max(m,n),
...@@ -715,7 +715,6 @@ bool solve( const Mat& src, const Mat& _src2, Mat& dst, int method ) ...@@ -715,7 +715,6 @@ bool solve( const Mat& src, const Mat& _src2, Mat& dst, int method )
transpose( xt, dst ); transpose( xt, dst );
return result; return result;
}
} }
......
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