Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hschreiber committed Jan 15, 2024
1 parent cf880bf commit 499972c
Show file tree
Hide file tree
Showing 5 changed files with 256 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#define PM_BASE_SWAP_H

#include <utility> //std::swap, std::move & std::exchange
#include <vector>

namespace Gudhi {
namespace persistence_matrix {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ template<class Matrix_type, class Master_matrix_type>
inline typename Position_to_id_indexation_overlay<Matrix_type,Master_matrix_type>::Row_type &
Position_to_id_indexation_overlay<Matrix_type,Master_matrix_type>::get_row(index rowIndex)
{
return matrix_.get_row(matrix_.get_pivot(columnPositionToID_[rowIndex])); //TODO: ???
return matrix_.get_row(matrix_.get_pivot(columnPositionToID_[rowIndex])); //necessary because there can be a difference between the id used for the positioning and the id used for the simplex if the user used its own ids instead of id = initial position
}

template<class Matrix_type, class Master_matrix_type>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,6 @@ inline bool RU_vine_swap<Master_matrix>::_positive_vine_swap(index index)
_positive_transpose(index);
return true;
}

return false;
}

Expand Down
Loading

0 comments on commit 499972c

Please sign in to comment.