diff options
author | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2018-02-20 16:03:52 +0000 |
---|---|---|
committer | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2018-02-20 16:03:52 +0000 |
commit | 0586a149b5bb3a4b65b63b2ab7d3ecdd9682ee1b (patch) | |
tree | d982ba2389a24fbccc92d6a6d147c5e323bd4f5d /src/Cech_complex/example | |
parent | 4a91726c9500e4b7ffe469192aa1140650c3d094 (diff) |
tests and utils fix
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/cechcomplex_vincent@3253 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: 5786a8a7e4b16750f29fac99ca61926158542cfd
Diffstat (limited to 'src/Cech_complex/example')
-rw-r--r-- | src/Cech_complex/example/example_one_skeleton_cech_from_points.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Cech_complex/example/example_one_skeleton_cech_from_points.cpp b/src/Cech_complex/example/example_one_skeleton_cech_from_points.cpp index 9b03616c..73679716 100644 --- a/src/Cech_complex/example/example_one_skeleton_cech_from_points.cpp +++ b/src/Cech_complex/example/example_one_skeleton_cech_from_points.cpp @@ -27,11 +27,12 @@ #include <iostream> #include <string> #include <vector> +#include <array> #include <limits> // for std::numeric_limits int main() { // Type definitions - using Point_cloud = std::vector<std::vector<double>>; + using Point_cloud = std::vector<std::array<double, 2>>; using Simplex_tree = Gudhi::Simplex_tree<Gudhi::Simplex_tree_options_fast_persistence>; using Filtration_value = Simplex_tree::Filtration_value; using Cech_complex = Gudhi::cech_complex::Cech_complex<Simplex_tree, Point_cloud>; @@ -52,7 +53,7 @@ int main() { Cech_complex cech_complex_from_points(points, threshold, Gudhi::Euclidean_distance()); Simplex_tree stree; - cech_complex_from_points.create_complex(stree, 2); + cech_complex_from_points.create_complex(stree, 3); // ---------------------------------------------------------------------------- // Display information about the one skeleton Rips complex // ---------------------------------------------------------------------------- |