about summary refs log tree commit diff
diff options
context:
space:
mode:
-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);
 }
 
 /*