about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPjotr Prins2017-08-26 15:47:07 +0000
committerPjotr Prins2017-08-26 15:47:07 +0000
commita1984edf45653c46ff430de3958449459532cb6f (patch)
treeee7fe2693b3174328e46a22454edeb9e64cfc021
parentbe45bcca0ddc1d88066bd18a56ca57d588e41e99 (diff)
downloadpangemma-a1984edf45653c46ff430de3958449459532cb6f.tar.gz
LULndet: remove bad enforce
-rw-r--r--src/lapack.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lapack.cpp b/src/lapack.cpp
index 9e25791..0dbfed6 100644
--- a/src/lapack.cpp
+++ b/src/lapack.cpp
@@ -594,10 +594,7 @@ void LUInvert(const gsl_matrix_float *LU, const gsl_permutation *p,
 
 // LU lndet.
 double LULndet(const gsl_matrix *LU) {
-  double d;
-  d = gsl_linalg_LU_lndet((gsl_matrix *)LU);
-  enforce(d != 0.0);
-  return d;
+  return gsl_linalg_LU_lndet((gsl_matrix *)LU);
 }
 
 /*