Class managing the vine swaps for RU_matrix.
More...
#include <gudhi/Persistence_matrix/ru_vine_swap.h>
|
using | index = typename Master_matrix::index |
|
using | id_index = typename Master_matrix::id_index |
|
using | pos_index = typename Master_matrix::pos_index |
|
|
| RU_vine_swap () |
| Default constructor.
|
|
| RU_vine_swap (const RU_vine_swap &matrixToCopy) |
| Copy constructor.
|
|
| RU_vine_swap (RU_vine_swap &&other) noexcept |
| Move constructor.
|
|
bool | vine_swap_with_z_eq_1_case (pos_index index) |
| Does the same than vine_swap, but assumes that the swap is non trivial and therefore skips a part of the case study.
|
|
bool | vine_swap (pos_index index) |
| Does a vine swap between two faces which are consecutives in the filtration. Roughly, if \( F \) is the current filtration represented by the matrix, the method modifies the matrix such that the new state corresponds to a valid state for the filtration \( F' \) equal to \( F \) but with the two faces at position position and position + 1 swapped. Of course, the two faces should not have a face/coface relation which each other ; \( F' \) has to be a valid filtration. See [vineyards] for more information about vine and vineyards.
|
|
RU_vine_swap & | operator= (RU_vine_swap other) |
| Assign operator.
|
|
template<class Master_matrix>
class Gudhi::persistence_matrix::RU_vine_swap< Master_matrix >
Class managing the vine swaps for RU_matrix.
- Template Parameters
-
Master_matrix | An instanciation of Matrix from which all types and options are deduced. |
◆ id_index
template<class Master_matrix >
◆ index
template<class Master_matrix >
◆ pos_index
template<class Master_matrix >
◆ RU_vine_swap() [1/2]
template<class Master_matrix >
Copy constructor.
- Parameters
-
◆ RU_vine_swap() [2/2]
template<class Master_matrix >
Move constructor.
- Parameters
-
◆ vine_swap()
template<class Master_matrix >
Does a vine swap between two faces which are consecutives in the filtration. Roughly, if \( F \) is the current filtration represented by the matrix, the method modifies the matrix such that the new state corresponds to a valid state for the filtration \( F' \) equal to \( F \) but with the two faces at position position
and position + 1
swapped. Of course, the two faces should not have a face/coface relation which each other ; \( F' \) has to be a valid filtration. See [vineyards] for more information about vine and vineyards.
- Parameters
-
position | PosIdx index of the first face to swap. The second one has to be at position + 1 . |
- Returns
- true If the barcode changed from the swap.
-
false Otherwise.
◆ vine_swap_with_z_eq_1_case()
template<class Master_matrix >
Does the same than vine_swap, but assumes that the swap is non trivial and therefore skips a part of the case study.
- Parameters
-
position | PosIdx index of the first face to swap. The second one has to be at position + 1 . |
- Returns
- true If the barcode changed from the swap.
-
false Otherwise.
The documentation for this class was generated from the following file: