fixed accuracy problem in cv::invert() (Cholesky method)

This commit is contained in:
Vadim Pisarevsky 2010-09-14 13:56:47 +00:00
parent b5b00d9ad4
commit 652d0c2a54

View File

@ -117,7 +117,7 @@
char trans = lapack_toupper(_trans[0]); char trans = lapack_toupper(_trans[0]);
integer i, j, m = *_m, n = *_n, lda = *_lda, incx = *_incx, incy = *_incy; integer i, j, m = *_m, n = *_n, lda = *_lda, incx = *_incx, incy = *_incy;
integer leny = trans == 'N' ? m : n, lenx = trans == 'N' ? n : m; integer leny = trans == 'N' ? m : n, lenx = trans == 'N' ? n : m;
real alpha = *_alpha, beta = *_beta; doublereal alpha = *_alpha, beta = *_beta;
integer info = 0; integer info = 0;
if (trans != 'N' && trans != 'T' && trans != 'C') if (trans != 'N' && trans != 'T' && trans != 'C')