summaryrefslogtreecommitdiff
path: root/src/Persistent_cohomology/benchmark
diff options
context:
space:
mode:
authorvrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2016-10-03 15:17:04 +0000
committervrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2016-10-03 15:17:04 +0000
commit5ce7c7c8ec1378439cdc02dc94ac2a7e14e9ca04 (patch)
treee5dab0473590126a3a5864fe7ebc11720c26bd26 /src/Persistent_cohomology/benchmark
parent29499b02d1b6eafcc6419a0b6b4469152ea20a09 (diff)
Fix euclidean distance for rips
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/rips_complex_module@1610 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: a07dfd4ffe3f17bf242ffb5b57058e99171a8016
Diffstat (limited to 'src/Persistent_cohomology/benchmark')
-rw-r--r--src/Persistent_cohomology/benchmark/performance_rips_persistence.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Persistent_cohomology/benchmark/performance_rips_persistence.cpp b/src/Persistent_cohomology/benchmark/performance_rips_persistence.cpp
index 99fcad41..a9eab5dd 100644
--- a/src/Persistent_cohomology/benchmark/performance_rips_persistence.cpp
+++ b/src/Persistent_cohomology/benchmark/performance_rips_persistence.cpp
@@ -33,7 +33,7 @@
#include <vector>
// Types definition
-using Simplex_tree = Gudhi::Simplex_tree</*Gudhi::Simplex_tree_options_fast_persistence*/>;
+using Simplex_tree = Gudhi::Simplex_tree<Gudhi::Simplex_tree_options_fast_persistence>;
using Filtration_value = Simplex_tree::Filtration_value;
using Rips_complex = Gudhi::rips_complex::Rips_complex<Filtration_value>;
using Field_Zp = Gudhi::persistent_cohomology::Field_Zp;
@@ -84,7 +84,7 @@ int main(int argc, char * argv[]) {
// Compute the proximity graph of the points
start = std::chrono::system_clock::now();
Rips_complex rips_complex_from_file(off_reader.get_point_cloud(), threshold,
- euclidean_distance<Point>);
+ euclidean_distance<Filtration_value, Point>);
end = std::chrono::system_clock::now();
elapsed_sec = std::chrono::duration_cast<std::chrono::milliseconds>(end - start).count();
std::cout << "Compute Rips graph in " << elapsed_sec << " ms.\n";