Skip to content

Commit

Permalink
update persistence matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
hschreiber committed Apr 19, 2024
2 parents 4436039 + aca2e02 commit e384378
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/Persistence_matrix/include/gudhi/matrix.h
Original file line number Diff line number Diff line change
Expand Up @@ -590,8 +590,6 @@ class Matrix {
* information outside of the matrix about the barcode to provide a better suited comparator adapted to the situation
* (as in the implementation of the Zigzag algorithm @cite zigzag for example.)
*
* @tparam BirthComparatorFunction Type of the birth comparator: (@ref pos_index, @ref pos_index) -> bool
* @tparam DeathComparatorFunction Type of the death comparator: (@ref pos_index, @ref pos_index) -> bool
* @param birthComparator Method taking two @ref PosIdx indices as parameter and returns true if and only if the first
* face is associated to a bar with strictly smaller birth than the bar associated to the second one.
* @param deathComparator Method taking two @ref PosIdx indices as parameter and returns true if and only if the first
Expand All @@ -610,11 +608,9 @@ class Matrix {
*
* See description of @ref Matrix(const std::vector<Container_type>& columns, characteristic_type characteristic)
* for more information about @p orderedBoundaries and
* @ref Matrix(const BirthComparatorFunction& birthComparator, const DeathComparatorFunction& deathComparator)
* @ref Matrix(const std::function<bool(pos_index,pos_index)>&, const std::function<bool(pos_index,pos_index)>&)
* for more information about the comparators.
*
* @tparam BirthComparatorFunction Type of the birth comparator: (@ref pos_index, @ref pos_index) -> bool
* @tparam DeathComparatorFunction Type of the death comparator: (@ref pos_index, @ref pos_index) -> bool
* @tparam Boundary_type Range type for @ref cell_rep_type ranges. Assumed to have a begin(), end() and size() method.
* @param orderedBoundaries Vector of ordered boundaries in filtration order. Indexed continously starting at 0.
* @param birthComparator Method taking two @ref PosIdx indices as parameter and returns true if and only if the first
Expand All @@ -640,11 +636,9 @@ class Matrix {
* - @ref PersistenceMatrixOptions::has_column_pairings = false
*
* See description of
* @ref Matrix(const BirthComparatorFunction& birthComparator, const DeathComparatorFunction& deathComparator)
* @ref Matrix(const std::function<bool(pos_index,pos_index)>&, const std::function<bool(pos_index,pos_index)>&)
* for more information about the comparators.
*
* @tparam BirthComparatorFunction Type of the birth comparator: (@ref pos_index, @ref pos_index) -> bool
* @tparam DeathComparatorFunction Type of the death comparator: (@ref pos_index, @ref pos_index) -> bool
* @param numberOfColumns Number of columns to reserve space for.
* @param birthComparator Method taking two @ref PosIdx indices as parameter and returns true if and only if the first
* face is associated to a bar with strictly smaller birth than the bar associated to the second one.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(Chain_matrix_z2_vine_representative_cycles, Matrix
bool birth_comparator(unsigned int columnIndex1, unsigned int columnIndex2) {
if (columnIndex1 == 0) return false;
if (columnIndex1 == 3) return true;
if (columnIndex1 == 1) return true;
return false;
}

Expand Down

0 comments on commit e384378

Please sign in to comment.