From 4c49c5b219dfc1b477341af9040dc13d24c29537 Mon Sep 17 00:00:00 2001 From: Vadim Pisarevsky Date: Tue, 1 Jun 2010 15:44:02 +0000 Subject: [PATCH] fixed repeated calculations in cvsolve (thanks to denisstack for the fix) --- modules/core/src/lapack.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/core/src/lapack.cpp b/modules/core/src/lapack.cpp index bc53135..86e1671 100644 --- a/modules/core/src/lapack.cpp +++ b/modules/core/src/lapack.cpp @@ -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; - } } -- 2.7.4