aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorprasun2017-09-14 11:04:59 +0530
committerprasun2017-09-14 11:04:59 +0530
commitd1c8507cd4a36b3789639e3a7a384562c842c1f7 (patch)
treeb1973bd55288bb93d8192d453e4ffd9a7039ff0b
parentffc99d62013b1a5025b21cc385dd9892360ebe49 (diff)
downloadpangemma-d1c8507cd4a36b3789639e3a7a384562c842c1f7.tar.gz
check GSL_MINOR_VERSION while compiling
-rw-r--r--src/mathfunc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mathfunc.cpp b/src/mathfunc.cpp
index 7e10f5a..4203837 100644
--- a/src/mathfunc.cpp
+++ b/src/mathfunc.cpp
@@ -229,7 +229,7 @@ bool isMatrixPositiveDefinite(const gsl_matrix *G) {
auto G2 = gsl_matrix_alloc(G->size1, G->size2);
enforce_gsl(gsl_matrix_memcpy(G2,G));
auto handler = gsl_set_error_handler_off();
-#if GSL_MAJOR_VERSION >= 2
+#if GSL_MAJOR_VERSION >= 2 && GSL_MINOR_VERSION >= 3
auto s = gsl_linalg_cholesky_decomp1(G2);
#else
auto s = gsl_linalg_cholesky_decomp(G2);