add check_nonfinite config option

This commit is contained in:
conrad
2022-03-28 11:54:47 +10:00
parent a11b62d69c
commit 6fb8a00dba
3 changed files with 18 additions and 1 deletions
+7
View File
@@ -65,6 +65,13 @@ struct arma_config
#endif
#if defined(ARMA_CHECK_NONFINITE)
static constexpr bool check_nonfinite = true;
#else
static constexpr bool check_nonfinite = false;
#endif
#if defined(ARMA_USE_LAPACK)
static constexpr bool lapack = true;
#else
+5
View File
@@ -154,6 +154,11 @@
//// of inv() and inv_sympd() within compound expressions
#endif
#if !defined(ARMA_CHECK_NONFINITE)
#define ARMA_CHECK_NONFINITE
//// Comment out the above line if you don't want automatic checking for nonfinite matrices
#endif
// #define ARMA_USE_HDF5_ALT
#if defined(ARMA_USE_HDF5_ALT) && defined(ARMA_USE_WRAPPER)
#undef ARMA_USE_HDF5
+6 -1
View File
@@ -154,7 +154,12 @@
//// of inv() and inv_sympd() within compound expressions
#endif
#cmakedefine ARMA_USE_HDF5_ALT
#if !defined(ARMA_CHECK_NONFINITE)
#define ARMA_CHECK_NONFINITE
//// Comment out the above line if you don't want automatic checking for nonfinite matrices
#endif
// #define ARMA_USE_HDF5_ALT
#if defined(ARMA_USE_HDF5_ALT) && defined(ARMA_USE_WRAPPER)
#undef ARMA_USE_HDF5
#define ARMA_USE_HDF5