bug #705: fix handling of Lapack potrf return code

(grafted from 0a9b5d13965aa2294ed657ffef327287df99cfd3
)
This commit is contained in:
Gael Guennebaud 2015-06-05 15:59:13 +02:00
parent ac66f1c73d
commit 8597ee502b

View File

@ -60,7 +60,7 @@ template<> struct mkl_llt<EIGTYPE> \
lda = m.outerStride(); \
\
info = LAPACKE_##MKLPREFIX##potrf( matrix_order, uplo, size, (MKLTYPE*)a, lda ); \
info = (info==0) ? Success : NumericalIssue; \
info = (info==0) ? -1 : info>0 ? info-1 : size; \
return info; \
} \
}; \