Class managing the pivot and partitioning of columns in Chain_matrix. More...
Public Types | |
using | index = typename Master_matrix::index |
using | id_index = typename Master_matrix::id_index |
Public Member Functions | |
Chain_column_extra_properties () | |
Default constructor. Sets the pivot and pair to -1, which means "not existing". | |
Chain_column_extra_properties (id_index pivot) | |
Constructor setting the pivot at the given value and the pair to -1 (i.e. not paired). More... | |
Chain_column_extra_properties (id_index pivot, index pair) | |
Constructor setting the pivot and the pair at the given values. More... | |
Chain_column_extra_properties (const Chain_column_extra_properties &col) | |
Copy constructor. More... | |
Chain_column_extra_properties (Chain_column_extra_properties &&col) | |
Move constructor. More... | |
index | get_paired_chain_index () const |
Returns -1 if the column is not paired, the MatIdx of the pair otherwise. More... | |
bool | is_paired () const |
Indicates if the column is paired or not. More... | |
void | assign_paired_chain (index other_col) |
Sets the value of the pair. More... | |
void | unassign_paired_chain () |
Unpairs a column. | |
Chain_column_extra_properties & | operator= (const Chain_column_extra_properties &other) |
Assign operator. | |
Friends | |
void | swap (Chain_column_extra_properties &col1, Chain_column_extra_properties &col2) |
Swap operator. | |
Class managing the pivot and partitioning of columns in Chain_matrix.
The columns of a chain matrix are partitioned in three sets: \( F \), \( G \) and \( H \) with a bijection between \( G \) and \( H \). If a column is in \( F \), the value of Chain_column_extra_properties::pairedColumn_
is -1
, while the value corresponds to the MatIdx index of the image of the bijection if the column is in either \( G \) or \( H \). See [41] for more details.
Master_matrix | An instanciation of Matrix from which all types and options are deduced. |
using Gudhi::persistence_matrix::Chain_column_extra_properties< Master_matrix >::id_index = typename Master_matrix::id_index |
IDIdx index type.
using Gudhi::persistence_matrix::Chain_column_extra_properties< Master_matrix >::index = typename Master_matrix::index |
MatIdx index type.
|
inline |
|
inline |
|
inline |
Copy constructor.
col | Column to copy. |
|
inline |
Move constructor.
col | Column to move. |
|
inline |
Sets the value of the pair.
other_col | MatIdx of the pair column. |
|
inline |
|
inline |
Indicates if the column is paired or not.