Class managing the column and row swaps in Base_matrix and Boundary_matrix.
More...
#include <gudhi/Persistence_matrix/base_swap.h>
|
using | Column_container = typename Master_matrix::Column_container |
|
using | Index = typename Master_matrix::Index |
|
using | ID_index = typename Master_matrix::ID_index |
|
|
| Base_swap () |
| Default constructor.
|
|
| Base_swap (unsigned int numberOfColumns) |
| As default constructor, but reserves spaces for numberOfColumns columns. More...
|
|
| Base_swap (const Base_swap &matrixToCopy)=default |
| Copy constructor. More...
|
|
| Base_swap (Base_swap &&other) noexcept |
| Move constructor. More...
|
|
void | swap_columns (Index columnIndex1, Index columnIndex2) |
| Swaps the two columns at given indices in the column container. Does not updates the column index value, potentially stored in the entries. This will be done when calling _orderRows() . More...
|
|
void | swap_rows (ID_index rowIndex1, ID_index rowIndex2) |
| Swaps the two rows at the given indices, but in a lazy manner. That is, the swap is registered but not executed. The reordering will be done when calling _orderRows() . More...
|
|
Base_swap & | operator= (Base_swap other) |
| Assign operator.
|
|
template<class Master_matrix, class
Base_matrix>
class Gudhi::persistence_matrix::Base_swap< Master_matrix, Base_matrix >
Class managing the column and row swaps in Base_matrix and Boundary_matrix.
- Template Parameters
-
◆ Column_container
◆ ID_index
◆ Index
◆ Base_swap() [1/3]
As default constructor, but reserves spaces for numberOfColumns
columns.
- Parameters
-
numberOfColumns | Number of columns to reserve space for. |
◆ Base_swap() [2/3]
Copy constructor.
- Parameters
-
◆ Base_swap() [3/3]
Move constructor.
- Parameters
-
◆ swap_columns()
Swaps the two columns at given indices in the column container. Does not updates the column index value, potentially stored in the entries. This will be done when calling _orderRows()
.
- Parameters
-
columnIndex1 | First MatIdx column index. |
columnIndex2 | Second MatIdx column index. |
◆ swap_rows()
Swaps the two rows at the given indices, but in a lazy manner. That is, the swap is registered but not executed. The reordering will be done when calling _orderRows()
.
- Parameters
-
rowIndex1 | First row index. |
rowIndex2 | Second row index. |
The documentation for this class was generated from the following file: