From d61ad0bc268bc0ee3a231c3a34f42c896a785c3d Mon Sep 17 00:00:00 2001 From: David Loiseaux Date: Tue, 3 Oct 2023 14:26:12 +0200 Subject: [PATCH] fix numeric_limits with multi filtrations --- .../multi_filtrations/Finitely_critical_filtrations.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Simplex_tree/include/gudhi/Simplex_tree/multi_filtrations/Finitely_critical_filtrations.h b/src/Simplex_tree/include/gudhi/Simplex_tree/multi_filtrations/Finitely_critical_filtrations.h index 19b0804c8f..9343c9a723 100644 --- a/src/Simplex_tree/include/gudhi/Simplex_tree/multi_filtrations/Finitely_critical_filtrations.h +++ b/src/Simplex_tree/include/gudhi/Simplex_tree/multi_filtrations/Finitely_critical_filtrations.h @@ -176,10 +176,14 @@ template class numeric_limits> { public: +static constexpr bool has_infinity = true; + static Gudhi::multiparameter::multi_filtrations::Finitely_critical_multi_filtration infinity() throw(){ return Gudhi::multiparameter::multi_filtrations::Finitely_critical_multi_filtration(1, std::numeric_limits::infinity()); }; - +static Gudhi::multiparameter::multi_filtrations::Finitely_critical_multi_filtration max() throw(){ + return Gudhi::multiparameter::multi_filtrations::Finitely_critical_multi_filtration(1, std::numeric_limits::max()); + }; static Gudhi::multiparameter::multi_filtrations::Finitely_critical_multi_filtration quiet_NaN() throw(){ return Gudhi::multiparameter::multi_filtrations::Finitely_critical_multi_filtration(1, numeric_limits::quiet_NaN()); };