diff options
author | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2020-03-19 08:05:30 +0100 |
---|---|---|
committer | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2020-03-19 08:05:30 +0100 |
commit | 4010a8da315d500e023d8a1f5b70a9eab3da629c (patch) | |
tree | bf35d7e247085c061fb2a881efe4dd1b9d6ffc1b /src/Collapse/example | |
parent | 1142403db4ba255e0f5c9f8082a158780df51148 (diff) |
some cleanups
Diffstat (limited to 'src/Collapse/example')
-rw-r--r-- | src/Collapse/example/rips_persistence_with_sc.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Collapse/example/rips_persistence_with_sc.cpp b/src/Collapse/example/rips_persistence_with_sc.cpp index f16588cf..46ec8eca 100644 --- a/src/Collapse/example/rips_persistence_with_sc.cpp +++ b/src/Collapse/example/rips_persistence_with_sc.cpp @@ -29,7 +29,7 @@ public: doubleVector distances ; std::pair<std::size_t, std::size_t> e; for(std::size_t indx = 0; indx < number_of_points; indx++) { - for (int j = 0; j <= indx; j++) { + for (std::size_t j = 0; j <= indx; j++) { if( j == indx) distances.push_back(0); @@ -80,13 +80,11 @@ int main(int argc, char * const argv[]) { filediag_aft = filediag_aft+"_"+ out_file_name+ ".txt"; - double currentCreationTime = 0.0; - Distance_matrix distances; Distance_matrix *sparse_distances = new Distance_matrix(); - if(manifold == 'f' || manifold =='f') { + if(manifold == 'f') { Gudhi::Points_off_reader<Point> off_reader(in_file_name); if (!off_reader.is_valid()) { std::cerr << "Unable to read file " << in_file_name << "\n"; |