diff options
Diffstat (limited to 'geom_matching/wasserstein/include/basic_defs_ws.h')
-rw-r--r-- | geom_matching/wasserstein/include/basic_defs_ws.h | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/geom_matching/wasserstein/include/basic_defs_ws.h b/geom_matching/wasserstein/include/basic_defs_ws.h index 28f7452..1c5928f 100644 --- a/geom_matching/wasserstein/include/basic_defs_ws.h +++ b/geom_matching/wasserstein/include/basic_defs_ws.h @@ -51,6 +51,7 @@ derivative works thereof, in binary and source code form. #include "spdlog/fmt/ostr.h" #endif +#include "hera_infinity.h" #include "dnn/geometry/euclidean-dynamic.h" #include "def_debug_ws.h" @@ -59,17 +60,17 @@ derivative works thereof, in binary and source code form. namespace hera { -template<class Real = double> -inline bool is_infinity(const Real& x) -{ - return x == Real(-1); -}; - -template<class Real = double> -inline Real get_infinity() -{ - return Real( -1 ); -} +//template<class Real = double> +//inline bool is_infinity(const Real& x) +//{ +// return x == Real(-1); +//}; +// +//template<class Real = double> +//inline Real get_infinity() +//{ +// return Real( -1 ); +//} template<class Real = double> inline bool is_p_valid_norm(const Real& p) |