From fe6b11d031fcfe17d81d7ffe6dcfd97451bbd70e Mon Sep 17 00:00:00 2001 From: hschreiber Date: Fri, 8 Nov 2024 14:44:26 +0100 Subject: [PATCH] replace static_cast(-1) by get_null_value in persistence matrix --- src/Persistence_matrix/include/gudhi/Matrix.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Persistence_matrix/include/gudhi/Matrix.h b/src/Persistence_matrix/include/gudhi/Matrix.h index 69cbe7e32..542557f32 100644 --- a/src/Persistence_matrix/include/gudhi/Matrix.h +++ b/src/Persistence_matrix/include/gudhi/Matrix.h @@ -601,7 +601,7 @@ class Matrix { * @ref set_characteristic before calling for the first time a method needing it. Ignored if * @ref PersistenceMatrixOptions::is_z2 is true. */ - Matrix(unsigned int numberOfColumns, Characteristic characteristic = get_null_value()); + Matrix(unsigned int numberOfColumns, Characteristic characteristic = Matrix::get_null_value()); /** * @brief Constructs a new empty matrix with the given comparator functions. Only available when those comparators * are necessary. @@ -680,7 +680,7 @@ class Matrix { Matrix(unsigned int numberOfColumns, const std::function& birthComparator, const std::function& deathComparator, - Characteristic characteristic = get_null_value()); + Characteristic characteristic = Matrix::get_null_value()); /** * @brief Copy constructor. *