bug #705: fix handling of Lapack potrf return code

This commit is contained in:
Gael Guennebaud 2015-06-05 15:59:13 +02:00
parent d0b7b5cb55
commit 0a9b5d1396

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; \
} \
}; \