From e897b33b3184a230a24ddeff03c6b4ec070f2ab7 Mon Sep 17 00:00:00 2001 From: vrouvrea Date: Fri, 16 Dec 2016 11:05:25 +0000 Subject: Fix persistence rips after create_complex voidification git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/distance_matrix_in_rips_module@1896 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: d4a1258ea01bae048f30621594d0daf280fd8abb --- src/GudhUI/utils/Persistence_compute.h | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'src/GudhUI') diff --git a/src/GudhUI/utils/Persistence_compute.h b/src/GudhUI/utils/Persistence_compute.h index 12283cbe..2dc03c8e 100644 --- a/src/GudhUI/utils/Persistence_compute.h +++ b/src/GudhUI/utils/Persistence_compute.h @@ -79,16 +79,15 @@ template class Persistence_compute { Rips_complex rips_complex(points, params.threshold, Euclidean_distance()); Simplex_tree st; - if (rips_complex.create_complex(st, params.max_dim)) { - Persistent_cohomology pcoh(st); - // initializes the coefficient field for homology - pcoh.init_coefficients(params.p); - // put params.min_pers - pcoh.compute_persistent_cohomology(params.min_pers); - stream << "persistence: \n"; - stream << "p dimension birth death: \n"; - pcoh.output_diagram(stream); - } + rips_complex.create_complex(st, params.max_dim); + Persistent_cohomology pcoh(st); + // initializes the coefficient field for homology + pcoh.init_coefficients(params.p); + // put params.min_pers + pcoh.compute_persistent_cohomology(params.min_pers); + stream << "persistence: \n"; + stream << "p dimension birth death: \n"; + pcoh.output_diagram(stream); } }; -- cgit v1.2.3