mirror of
https://github.com/opencv/opencv.git
synced 2024-11-27 20:50:25 +08:00
fixed repeated calculations in cvsolve (thanks to denisstack for the fix)
This commit is contained in:
parent
1d63112714
commit
4c49c5b219
@ -528,9 +528,9 @@ bool solve( const Mat& src, const Mat& _src2, Mat& dst, int method )
|
||||
result = false;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
{
|
||||
double rcond=-1, s1=0, work1=0, *work=0, *s=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),
|
||||
@ -715,7 +715,6 @@ bool solve( const Mat& src, const Mat& _src2, Mat& dst, int method )
|
||||
transpose( xt, dst );
|
||||
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user