Gudhi::persistence_matrix::RU_representative_cycles< Master_matrix > Class Template Reference

Class managing the representative cycles for RU_matrix if the option was enabled. More...

Public Types

using index = typename Master_matrix::index
 
using Bar = typename Master_matrix::Bar
 
using cycle_type = typename Master_matrix::cycle_type
 

Public Member Functions

 RU_representative_cycles ()
 Default constructor.
 
 RU_representative_cycles (const RU_representative_cycles &matrixToCopy)
 Copy constructor. More...
 
 RU_representative_cycles (RU_representative_cycles &&other) noexcept
 Move constructor. More...
 
void update_representative_cycles ()
 Computes the current representative cycles of the matrix.
 
const std::vector< cycle_type > & get_representative_cycles ()
 Returns the current representative cycles. If the matrix is modified later after the first call, update_representative_cycles has to be called to update the returned cycles. More...
 
const cycle_typeget_representative_cycle (const Bar &bar)
 Returns the representative cycle corresponding to the given bar. If the matrix is modified later after the first call, update_representative_cycles has to be called to update the returned cycles. More...
 
RU_representative_cyclesoperator= (RU_representative_cycles other)
 Assign operator.
 

Friends

void swap (RU_representative_cycles &base1, RU_representative_cycles &base2)
 Swap operator.
 

Detailed Description

template<class Master_matrix>
class Gudhi::persistence_matrix::RU_representative_cycles< Master_matrix >

Class managing the representative cycles for RU_matrix if the option was enabled.

Template Parameters
Master_matrixAn instanciation of Matrix from which all types and options are deduced.

Member Typedef Documentation

◆ Bar

template<class Master_matrix >
using Gudhi::persistence_matrix::RU_representative_cycles< Master_matrix >::Bar = typename Master_matrix::Bar

Bar type.

◆ cycle_type

template<class Master_matrix >
using Gudhi::persistence_matrix::RU_representative_cycles< Master_matrix >::cycle_type = typename Master_matrix::cycle_type

Cycle type.

◆ index

template<class Master_matrix >
using Gudhi::persistence_matrix::RU_representative_cycles< Master_matrix >::index = typename Master_matrix::index

MatIdx index type.

Constructor & Destructor Documentation

◆ RU_representative_cycles() [1/2]

template<class Master_matrix >
Gudhi::persistence_matrix::RU_representative_cycles< Master_matrix >::RU_representative_cycles ( const RU_representative_cycles< Master_matrix > &  matrixToCopy)
inline

Copy constructor.

Parameters
matrixToCopyMatrix to copy.

◆ RU_representative_cycles() [2/2]

template<class Master_matrix >
Gudhi::persistence_matrix::RU_representative_cycles< Master_matrix >::RU_representative_cycles ( RU_representative_cycles< Master_matrix > &&  other)
inlinenoexcept

Move constructor.

Parameters
otherMatrix to move.

Member Function Documentation

◆ get_representative_cycle()

template<class Master_matrix >
const RU_representative_cycles< Master_matrix >::cycle_type & Gudhi::persistence_matrix::RU_representative_cycles< Master_matrix >::get_representative_cycle ( const Bar bar)
inline

Returns the representative cycle corresponding to the given bar. If the matrix is modified later after the first call, update_representative_cycles has to be called to update the returned cycles.

Parameters
barBar corresponding to the wanted representative cycle.
Returns
A const reference to the representative cycle.

◆ get_representative_cycles()

template<class Master_matrix >
const std::vector< typename RU_representative_cycles< Master_matrix >::cycle_type > & Gudhi::persistence_matrix::RU_representative_cycles< Master_matrix >::get_representative_cycles
inline

Returns the current representative cycles. If the matrix is modified later after the first call, update_representative_cycles has to be called to update the returned cycles.

Returns
A const reference to a vector of Matrix::cycle_type containing all representative cycles.

The documentation for this class was generated from the following file: