diff options
author | Pjotr Prins | 2018-09-06 11:59:03 +0000 |
---|---|---|
committer | Pjotr Prins | 2018-09-06 11:59:03 +0000 |
commit | cdf407bd7994dbe41a952bf29cacc1a2ca9c722e (patch) | |
tree | 1bd91f84684d556505ca930ecc73ceacbb1ce8ca /src/lapack.cpp | |
parent | 6dd15bfabc5c655d18ea19c0d69b76ecc34630e2 (diff) | |
download | pangemma-cdf407bd7994dbe41a952bf29cacc1a2ca9c722e.tar.gz |
More debugging and a performance check
Diffstat (limited to 'src/lapack.cpp')
-rw-r--r-- | src/lapack.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lapack.cpp b/src/lapack.cpp index 125e5a0..79d49fd 100644 --- a/src/lapack.cpp +++ b/src/lapack.cpp @@ -319,7 +319,7 @@ void LUDecomp(gsl_matrix *LU, gsl_permutation *p, int *signum) { void LUInvert(const gsl_matrix *LU, const gsl_permutation *p, gsl_matrix *ret_inverse) { // debug_msg("entering"); auto det = LULndet(LU); - assert(det != 1.0); + enforce_msg(det != 1.0,"LU determinant is zero -> LU is not invertable"); enforce_gsl(gsl_linalg_LU_invert(LU, p, ret_inverse)); } |