PETLS
Public Member Functions | Static Public Member Functions | List of all members
petls::Rips Class Reference

#include <Rips.hpp>

Inheritance diagram for petls::Rips:
petls::Complex

Public Member Functions

 Rips (const char *filename, int max_dim)
 
 Rips (const char *filename, int max_dim, float threshold)
 
 Rips (DenseMatrix_PL distances, int max_dim)
 
 Rips (DenseMatrix_PL distances, int max_dim, float threshold)
 
 Rips (std::vector< std::vector< double >> points, int max_dim)
 
 Rips (std::vector< std::vector< double >> points, int max_dim, float threshold)
 
- Public Member Functions inherited from petls::Complex
 Complex ()
 
 Complex (std::vector< Eigen::SparseMatrix< storage >> boundaries, std::vector< std::vector< filtration_type >> filtrations)
 
 ~Complex ()
 
void set_eigs_algorithm_func (std::function< spectra_vec(DenseMatrix_PL &)> _eigs_algorithm_func)
 
void set_eigs_algorithm_func (std::string name)
 
void set_up_algorithm_func (std::function< void(FilteredBoundaryMatrix< int > *, filtration_type, filtration_type, DenseMatrix_PL &)> _up_algorithm_func)
 
void set_up_algorithm_func (std::string name)
 
void set_boundaries_filtrations (std::vector< Eigen::SparseMatrix< storage >> boundaries, std::vector< std::vector< filtration_type >> filtrations)
 
void set_verbose (bool verbose)
 
void set_flipped (bool use_flipped)
 
void get_L (int dim, filtration_type a, filtration_type b, DenseMatrix_PL &L)
 
DenseMatrix_PL get_L (int dim, filtration_type a, filtration_type b)
 
void get_L_top_dim_flipped (filtration_type a, SparseMatrix_PL &L)
 
SparseMatrix_PL get_L_top_dim_flipped (filtration_type a)
 
void get_up (int dim, filtration_type a, filtration_type b, DenseMatrix_PL &L_up)
 
DenseMatrix_PL get_up (int dim, filtration_type a, filtration_type b)
 
void get_down (int dim, filtration_type a, Eigen::SparseMatrix< storage > &L_down)
 
DenseMatrix_PL get_down (int dim, filtration_type a)
 
std::vector< spectra_type > nonzero_spectra (int dim, filtration_type a, filtration_type b, SparseMatrix_PL PH_basis, bool use_dummy_harmonic_basis)
 
std::vector< spectra_type > spectra (int dim, filtration_type a, filtration_type b)
 
std::vector< std::tuple< int, filtration_type, filtration_type, std::vector< spectra_type > > > spectra ()
 
std::vector< std::tuple< int, filtration_type, filtration_type, std::vector< spectra_type > > > spectra (std::vector< std::tuple< int, filtration_type, filtration_type >> spectra_request_list)
 
std::vector< std::tuple< int, filtration_type, filtration_type, std::vector< spectra_type > > > spectra_allpairs ()
 
std::pair< std::vector< spectra_type >, DenseMatrix_PL > eigenpairs (int dim, filtration_type a, filtration_type b)
 
std::vector< std::tuple< int, filtration_type, filtration_type, std::vector< spectra_type >, DenseMatrix_PL > > eigenpairs ()
 
std::vector< std::tuple< int, filtration_type, filtration_type, std::vector< spectra_type >, DenseMatrix_PL > > eigenpairs (std::vector< std::tuple< int, filtration_type, filtration_type >> spectra_request_list)
 
std::pair< int, spectra_type > eigenvalues_summarize (std::vector< spectra_type > eigenvalues)
 
void store_L (int dim, filtration_type a, filtration_type b, std::string filename)
 
void print_boundaries ()
 
void store_spectra (std::vector< std::tuple< int, filtration_type, filtration_type, std::vector< spectra_type >>> spectra, std::string out_prefix)
 
void store_spectra_summary (std::vector< std::tuple< int, filtration_type, filtration_type, std::vector< spectra_type >>> spectra, std::string out_prefix)
 
void time_to_csv (std::string filename)
 
std::vector< std::tuple< int, filtration_type, filtration_type > > filtration_list_to_spectra_request (std::vector< filtration_type > filtrations, std::vector< int > dims)
 
std::vector< std::tuple< int, filtration_type, filtration_type > > filtration_list_to_spectra_request_allpairs (std::vector< filtration_type > filtrations, std::vector< int > dims)
 
std::vector< filtration_type > get_all_filtrations ()
 

Static Public Member Functions

static Rips from_distances (DenseMatrix_PL distances, int max_dim)
 
static Rips from_distances (DenseMatrix_PL distances, int max_dim, float threshold)
 
static Rips FromPoints (std::vector< std::vector< double >> points, int max_dim)
 
static Rips FromPoints (std::vector< std::vector< double >> points, int max_dim, float threshold)
 

Additional Inherited Members

- Public Attributes inherited from petls::Complex
int top_dim
 Top dimension of the complex. More...
 
std::vector< FilteredBoundaryMatrix< storage > > filtered_boundaries
 Boundary matrix assuming real (or integer) coefficients. More...
 
bool verbose
 Print progress if spectra() is called. More...
 
bool use_flipped
 Compute the top-dimensional Laplacian's eigenvalues in spectra function via the eigenvalues of the smaller of B_N B_N^T or B_N^T B_N and possible zero-padding. More...
 
Profile profile
 Profiler to track time usage of various steps. More...
 
std::function< spectra_vec(DenseMatrix_PL &)> eigs_algorithm_func
 
std::function< std::pair< spectra_vec, DenseMatrix_PL >DenseMatrix_PL &)> eigenpairs_algorithm_func
 
std::function< void(FilteredBoundaryMatrix< storage > *, filtration_type, filtration_type, DenseMatrix_PL &)> up_algorithm_func
 
- Protected Member Functions inherited from petls::Complex
petls::FilteredBoundaryMatrix< storage > dummy_d0 ()
 

Constructor & Destructor Documentation

◆ Rips() [1/6]

petls::Rips::Rips ( const char *  filename,
int  max_dim 
)
inline

◆ Rips() [2/6]

petls::Rips::Rips ( const char *  filename,
int  max_dim,
float  threshold 
)
inline

◆ Rips() [3/6]

petls::Rips::Rips ( DenseMatrix_PL  distances,
int  max_dim 
)
inline

◆ Rips() [4/6]

petls::Rips::Rips ( DenseMatrix_PL  distances,
int  max_dim,
float  threshold 
)
inline

◆ Rips() [5/6]

petls::Rips::Rips ( std::vector< std::vector< double >>  points,
int  max_dim 
)
inline

◆ Rips() [6/6]

petls::Rips::Rips ( std::vector< std::vector< double >>  points,
int  max_dim,
float  threshold 
)
inline

Member Function Documentation

◆ from_distances() [1/2]

static Rips petls::Rips::from_distances ( DenseMatrix_PL  distances,
int  max_dim 
)
inlinestatic

◆ from_distances() [2/2]

static Rips petls::Rips::from_distances ( DenseMatrix_PL  distances,
int  max_dim,
float  threshold 
)
inlinestatic

◆ FromPoints() [1/2]

static Rips petls::Rips::FromPoints ( std::vector< std::vector< double >>  points,
int  max_dim 
)
inlinestatic

◆ FromPoints() [2/2]

static Rips petls::Rips::FromPoints ( std::vector< std::vector< double >>  points,
int  max_dim,
float  threshold 
)
inlinestatic

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