Class managing the representative cycles for Chain_matrix if the option was enabled. More...
#include <gudhi/Persistence_matrix/chain_rep_cycles.h>
Public Types | |
| using | Bar = typename Master_matrix::Bar |
| using | Cycle = typename Master_matrix::Cycle |
| using | Column_container = typename Master_matrix::Column_container |
| using | Index = typename Master_matrix::Index |
| using | ID_index = typename Master_matrix::ID_index |
| using | Dimension = typename Master_matrix::Dimension |
Public Member Functions | |
| Chain_representative_cycles ()=default | |
| Default constructor. | |
| void | update_all_representative_cycles (Dimension dim=Master_matrix::template get_null_value< Dimension >()) |
| Computes the current representative cycles of the matrix. | |
| void | update_representative_cycle (const Bar &bar) |
| Computes the current representative cycle of the given bar. All other cycles already computed are left untouched (and therefore they could be unvalid for the current matrix). | |
| const std::vector< Cycle > & | get_all_representative_cycles () const |
| Returns the current representative cycles. If the matrix was modified since the last call, update_all_representative_cycles has to be called to update the returned cycles. | |
| const Cycle & | get_representative_cycle (const Bar &bar) const |
| Returns the representative cycle corresponding to the given bar. If the matrix was modified since the last call, update_all_representative_cycles or update_representative_cycle has to be called to update the returned cycle. | |
Friends | |
| void | swap (Chain_representative_cycles &base1, Chain_representative_cycles &base2) noexcept |
| Swap operator. | |
Class managing the representative cycles for Chain_matrix if the option was enabled.
| Master_matrix | An instantiation of Matrix from which all types and options are deduced. |
| using Gudhi::persistence_matrix::Chain_representative_cycles< Master_matrix >::Bar = typename Master_matrix::Bar |
Bar type.
| using Gudhi::persistence_matrix::Chain_representative_cycles< Master_matrix >::Column_container = typename Master_matrix::Column_container |
Column container type.
| using Gudhi::persistence_matrix::Chain_representative_cycles< Master_matrix >::Cycle = typename Master_matrix::Cycle |
Cycle type.
| using Gudhi::persistence_matrix::Chain_representative_cycles< Master_matrix >::Dimension = typename Master_matrix::Dimension |
Dimension type.
| using Gudhi::persistence_matrix::Chain_representative_cycles< Master_matrix >::ID_index = typename Master_matrix::ID_index |
IDIdx index type.
| using Gudhi::persistence_matrix::Chain_representative_cycles< Master_matrix >::Index = typename Master_matrix::Index |
MatIdx index type.
|
inline |
Returns the current representative cycles. If the matrix was modified since the last call, update_all_representative_cycles has to be called to update the returned cycles.
|
inline |
Returns the representative cycle corresponding to the given bar. If the matrix was modified since the last call, update_all_representative_cycles or update_representative_cycle has to be called to update the returned cycle.
| bar | Bar corresponding to the wanted representative cycle. |
|
inline |
Computes the current representative cycles of the matrix.
| dim | If different from default value, only the cycles of the given dimension are updated. All others are erased. |
|
inline |
Computes the current representative cycle of the given bar. All other cycles already computed are left untouched (and therefore they could be unvalid for the current matrix).
| bar | Bar corresponding to the wanted representative cycle. |