diff options
author | Pjotr Prins | 2017-09-14 09:12:31 +0200 |
---|---|---|
committer | GitHub | 2017-09-14 09:12:31 +0200 |
commit | 1e99b37e42edb7981b44f1409cc3e55a47057878 (patch) | |
tree | 5870258c59f777e6d0f9593abf670e5259f3d4ba | |
parent | a98b5c66122833be4e57543bd3d11cd1a71b5ed6 (diff) | |
parent | d1c8507cd4a36b3789639e3a7a384562c842c1f7 (diff) | |
download | pangemma-1e99b37e42edb7981b44f1409cc3e55a47057878.tar.gz |
Merge pull request #85 from prasunanand/gsl_version_patch
check GSL_MINOR_VERSION while compiling
-rw-r--r-- | src/mathfunc.cpp | 2 |
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); |