From 0a9b5d13965aa2294ed657ffef327287df99cfd3 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 5 Jun 2015 15:59:13 +0200 Subject: bug #705: fix handling of Lapack potrf return code --- Eigen/src/Cholesky/LLT_MKL.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Eigen/src/Cholesky') diff --git a/Eigen/src/Cholesky/LLT_MKL.h b/Eigen/src/Cholesky/LLT_MKL.h index 09bf59d43..0d42cb5bc 100644 --- a/Eigen/src/Cholesky/LLT_MKL.h +++ b/Eigen/src/Cholesky/LLT_MKL.h @@ -60,7 +60,7 @@ template<> struct mkl_llt \ 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; \ } \ }; \ -- cgit v1.2.3