Class managing the column and row swaps in Base_matrix and Boundary_matrix.
More...
|
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. More...
|
|
| Base_swap (const Base_swap &matrixToCopy) |
| 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 cells. 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
-
◆ id_index
template<class Master_matrix , class Base_matrix >
◆ index
template<class Master_matrix , class Base_matrix >
◆ matrix_type
template<class Master_matrix , class Base_matrix >
◆ Base_swap() [1/3]
template<class Master_matrix , class Base_matrix >
As default constructor, but reserves spaces for numberOfColumns
columns.
- Parameters
-
numberOfColumns | Number of columns to reserve space for. |
◆ Base_swap() [2/3]
template<class Master_matrix , class Base_matrix >
Copy constructor.
- Parameters
-
◆ Base_swap() [3/3]
template<class Master_matrix , class Base_matrix >
Move constructor.
- Parameters
-
◆ swap_columns()
template<class Master_matrix , class Base_matrix >
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()
template<class Master_matrix , class Base_matrix >
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: