6 #include "../typedefs.hpp"
7 #include "../petls.hpp"
65 Complex(std::vector<Eigen::SparseMatrix<storage>> boundaries,
66 std::vector<std::vector<filtration_type>> filtrations);
92 std::vector<std::vector<filtration_type>> filtrations);
213 std::vector<std::tuple<int, filtration_type, filtration_type, std::vector<spectra_type>>>
spectra();
220 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);
226 std::vector<std::tuple<int, filtration_type, filtration_type, std::vector<spectra_type>>>
spectra_allpairs();
246 std::vector<std::tuple<int, filtration_type, filtration_type, std::vector<spectra_type>,
DenseMatrix_PL>>
eigenpairs();
252 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);
Definition: Complex.hpp:30
std::function< void(FilteredBoundaryMatrix< storage > *, filtration_type, filtration_type, DenseMatrix_PL &)> up_algorithm_func
Definition: Complex.hpp:45
std::vector< std::tuple< int, filtration_type, filtration_type, std::vector< spectra_type > > > spectra_allpairs()
Definition: Complex.cpp:664
Profile profile
Profiler to track time usage of various steps.
Definition: Complex.hpp:41
std::vector< FilteredBoundaryMatrix< storage > > filtered_boundaries
Boundary matrix assuming real (or integer) coefficients.
Definition: Complex.hpp:38
void get_down(int dim, filtration_type a, Eigen::SparseMatrix< storage > &L_down)
Definition: Complex.cpp:327
std::vector< filtration_type > get_all_filtrations()
Definition: Complex.cpp:1090
void set_eigs_algorithm_func(std::function< spectra_vec(DenseMatrix_PL &)> _eigs_algorithm_func)
Definition: Complex.cpp:79
int top_dim
Top dimension of the complex.
Definition: Complex.hpp:37
void time_to_csv(std::string filename)
Definition: Complex.hpp:303
std::function< std::pair< spectra_vec, DenseMatrix_PL >DenseMatrix_PL &)> eigenpairs_algorithm_func
Definition: Complex.hpp:43
void set_up_algorithm_func(std::function< void(FilteredBoundaryMatrix< int > *, filtration_type, filtration_type, DenseMatrix_PL &)> _up_algorithm_func)
Definition: Complex.cpp:98
std::vector< spectra_type > nonzero_spectra(int dim, filtration_type a, filtration_type b, SparseMatrix_PL PH_basis, bool use_dummy_harmonic_basis)
Definition: Complex.cpp:362
void get_L(int dim, filtration_type a, filtration_type b, DenseMatrix_PL &L)
Definition: Complex.cpp:170
bool verbose
Print progress if spectra() is called.
Definition: Complex.hpp:39
void get_up(int dim, filtration_type a, filtration_type b, DenseMatrix_PL &L_up)
Definition: Complex.cpp:300
void set_verbose(bool verbose)
Definition: Complex.hpp:98
void store_L(int dim, filtration_type a, filtration_type b, std::string filename)
Definition: Complex.cpp:873
Complex()
Definition: Complex.cpp:43
void store_spectra(std::vector< std::tuple< int, filtration_type, filtration_type, std::vector< spectra_type >>> spectra, std::string out_prefix)
Definition: Complex.cpp:913
void print_boundaries()
Definition: Complex.cpp:890
std::vector< std::tuple< int, filtration_type, filtration_type > > filtration_list_to_spectra_request(std::vector< filtration_type > filtrations, std::vector< int > dims)
Definition: Complex.cpp:1021
~Complex()
Definition: Complex.hpp:71
void set_flipped(bool use_flipped)
Definition: Complex.hpp:104
void store_spectra_summary(std::vector< std::tuple< int, filtration_type, filtration_type, std::vector< spectra_type >>> spectra, std::string out_prefix)
Definition: Complex.cpp:944
std::vector< std::tuple< int, filtration_type, filtration_type, std::vector< spectra_type >, DenseMatrix_PL > > eigenpairs()
Definition: Complex.cpp:765
bool use_flipped
Compute the top-dimensional Laplacian's eigenvalues in spectra function via the eigenvalues of the sm...
Definition: Complex.hpp:40
void set_boundaries_filtrations(std::vector< Eigen::SparseMatrix< storage >> boundaries, std::vector< std::vector< filtration_type >> filtrations)
Definition: Complex.cpp:120
void get_L_top_dim_flipped(filtration_type a, SparseMatrix_PL &L)
Definition: Complex.cpp:268
std::pair< int, spectra_type > eigenvalues_summarize(std::vector< spectra_type > eigenvalues)
Definition: Complex.cpp:839
std::vector< std::tuple< int, filtration_type, filtration_type > > filtration_list_to_spectra_request_allpairs(std::vector< filtration_type > filtrations, std::vector< int > dims)
Definition: Complex.cpp:1056
std::vector< std::tuple< int, filtration_type, filtration_type, std::vector< spectra_type > > > spectra()
Definition: Complex.cpp:592
std::function< spectra_vec(DenseMatrix_PL &)> eigs_algorithm_func
Definition: Complex.hpp:42
petls::FilteredBoundaryMatrix< storage > dummy_d0()
Definition: Complex.cpp:1111
Definition: FilteredBoundaryMatrix.hpp:15
Definition: Complex.cpp:26
void to_csv(std::string filename)
Definition: petls.cpp:136
Eigen::Matrix< coefficient_type, Eigen::Dynamic, Eigen::Dynamic > DenseMatrix_PL
Definition: typedefs.hpp:14
Eigen::Matrix< spectra_type, Eigen::Dynamic, 1 > spectra_vec
Definition: typedefs.hpp:17
Eigen::SparseMatrix< coefficient_type, Eigen::ColMajor > SparseMatrix_PL
Definition: typedefs.hpp:13
double filtration_type
Definition: typedefs.hpp:24