Class managing the column and row swaps in Base_matrix and Boundary_matrix.
More...
#include <gudhi/Persistence_matrix/base_swap.h>
|
| using | matrix_type = typename Master_matrix::column_container_type |
| |
| 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.
|
| |
| | Base_swap (const Base_swap &matrixToCopy) |
| | Copy constructor.
|
| |
| | Base_swap (Base_swap &&other) noexcept |
| | Move constructor.
|
| |
| 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 cells. This will be done when calling _orderRows().
|
| |
| 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().
|
| |
|
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
-
◆ id_index
◆ index
◆ matrix_type
◆ 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 cells. 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: