Skip to content

Commit

Permalink
argument type uniformization
Browse files Browse the repository at this point in the history
  • Loading branch information
hschreiber committed Jul 16, 2024
1 parent 82988a9 commit 49d69e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Persistence_matrix/include/gudhi/matrix.h
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ class Matrix {
* to be consecutive and starting with 0 (an empty boundary is interpreted as a vertex boundary and not as a non
* existing simplex). All dimensions up to the maximal dimension of interest have to be present. If only a higher
* dimension is of interest and not everything should be stored, then use the @ref insert_boundary method instead
* (after creating the matrix with the @ref Matrix(int numberOfColumns, characteristic_type characteristic)
* (after creating the matrix with the @ref Matrix(unsigned int numberOfColumns, characteristic_type characteristic)
* constructor preferably). If the persistence barcode has to be computed from this matrix, the simplices are also
* assumed to be ordered by appearance order in the filtration. Also, depending of the options, the matrix is
* eventually reduced on the fly or converted into a chain complex base, so the new matrix is not always identical to
Expand All @@ -593,7 +593,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(int numberOfColumns, characteristic_type characteristic = static_cast<characteristic_type>(-1));
Matrix(unsigned int numberOfColumns, characteristic_type characteristic = static_cast<characteristic_type>(-1));
/**
* @brief Constructs a new empty matrix with the given comparator functions. Only available when those comparators
* are necessary.
Expand Down Expand Up @@ -1427,7 +1427,7 @@ inline Matrix<PersistenceMatrixOptions>::Matrix(const std::vector<Container_type
}

template <class PersistenceMatrixOptions>
inline Matrix<PersistenceMatrixOptions>::Matrix(int numberOfColumns, characteristic_type characteristic)
inline Matrix<PersistenceMatrixOptions>::Matrix(unsigned int numberOfColumns, characteristic_type characteristic)
: colSettings_(new Column_settings(characteristic)),
matrix_(numberOfColumns, colSettings_)
{
Expand Down

0 comments on commit 49d69e3

Please sign in to comment.