4 #include "../core/PersistentLaplacian.hpp"
5 #include "../../include/Ripser_modified/ripser_modified.h"
9 template <
typename eigs_Algorithm,
typename up_Algorithm>
15 std::vector<std::vector<std::tuple<int64_t,int64_t,int>>> boundaries_triples;
16 std::vector<std::vector<filtration_type>> filtrations;
17 float threshold = std::numeric_limits<value_t>::max();
18 rips_distance_matrix_file(filename, (
long long int) max_dim, threshold, boundaries_triples, filtrations);
20 if(boundaries_triples.size() == 0){
24 std::vector<SparseMatrixInt> reindexed_boundaries(boundaries_triples.size());
32 std::vector<std::vector<std::tuple<int64_t,int64_t,int>>> boundaries_triples;
33 std::vector<std::vector<filtration_type>> filtrations;
34 rips_distance_matrix_file(filename, (
long long int) max_dim, threshold, boundaries_triples, filtrations);
36 std::vector<SparseMatrixInt> reindexed_boundaries(boundaries_triples.size());
45 std::vector<std::vector<std::tuple<int64_t,int64_t,int>>> boundaries_triples;
46 std::vector<std::vector<filtration_type>> filtrations;
47 float threshold = std::numeric_limits<value_t>::max();
48 rips_point_cloud(points, max_dim, threshold, boundaries_triples, filtrations);
49 std::vector<SparseMatrixInt> reindexed_boundaries(boundaries_triples.size());
57 std::vector<std::vector<std::tuple<int64_t,int64_t,int>>> boundaries_triples;
58 std::vector<std::vector<filtration_type>> filtrations;
59 rips_point_cloud(points, max_dim, threshold, boundaries_triples, filtrations);
60 std::vector<SparseMatrixInt> reindexed_boundaries(boundaries_triples.size());
Definition: PersistentLaplacian.hpp:30
void set_boundaries_filtrations(std::vector< SparseMatrixInt > boundaries, std::vector< std::vector< filtration_type >> filtrations)
Definition: PersistentLaplacian.hpp:95
Definition: PersistentRipsLaplacian.hpp:10
PersistentRipsLaplacian(const char *filename, int max_dim)
Definition: PersistentRipsLaplacian.hpp:14
PersistentRipsLaplacian(const char *filename, int max_dim, float threshold)
Definition: PersistentRipsLaplacian.hpp:31
PersistentRipsLaplacian(std::vector< std::vector< double >> points, int max_dim, float threshold)
Definition: PersistentRipsLaplacian.hpp:56
PersistentRipsLaplacian(std::vector< std::vector< double >> points, int max_dim)
Definition: PersistentRipsLaplacian.hpp:44
Definition: PersistentLaplacians.cpp:7
void reindex_boundaries_map(std::vector< std::vector< std::tuple< int64_t, int64_t, int >>> &boundaries_triples, std::vector< SparseMatrixInt > &reindexed_boundaries, int dummy_remove)
Definition: PersistentLaplacians.cpp:59