From d1c8507cd4a36b3789639e3a7a384562c842c1f7 Mon Sep 17 00:00:00 2001 From: prasun Date: Thu, 14 Sep 2017 11:04:59 +0530 Subject: check GSL_MINOR_VERSION while compiling --- src/mathfunc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3