diff options
author | Hind-M <hind.montassif@gmail.com> | 2021-09-06 17:19:32 +0200 |
---|---|---|
committer | Hind-M <hind.montassif@gmail.com> | 2021-09-06 17:19:32 +0200 |
commit | 839093da012bda0ee16744f1e340a8a8eb04f0af (patch) | |
tree | 8c27aa51a2ee377c0ed3b21fce5b74c07a53caf2 /src/Cech_complex/example/cech_complex_example_from_points.cpp | |
parent | bc28892cbae3d9a9fcc19a0fbcfcc98bb9195ff7 (diff) |
Remove unnecessary key permutations storage in cache
Diffstat (limited to 'src/Cech_complex/example/cech_complex_example_from_points.cpp')
-rw-r--r-- | src/Cech_complex/example/cech_complex_example_from_points.cpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/Cech_complex/example/cech_complex_example_from_points.cpp b/src/Cech_complex/example/cech_complex_example_from_points.cpp index ac17fc73..e78ad51d 100644 --- a/src/Cech_complex/example/cech_complex_example_from_points.cpp +++ b/src/Cech_complex/example/cech_complex_example_from_points.cpp @@ -43,6 +43,18 @@ int main() { std::vector<FT> point5({3. + std::sqrt(3.), 3.}); points.emplace_back(point5.begin(), point5.end()); +/* + std::vector<FT> point6({1., 4.}); + points.emplace_back(point6.begin(), point6.end()); + std::vector<FT> point7({3., 4.}); + points.emplace_back(point7.begin(), point7.end()); + std::vector<FT> point8({2., 4. + std::sqrt(3.)}); + points.emplace_back(point8.begin(), point8.end()); + std::vector<FT> point9({0., 4.}); + points.emplace_back(point9.begin(), point9.end()); + std::vector<FT> point10({-0.5, 2.}); + points.emplace_back(point10.begin(), point10.end()); +*/ // points.emplace_back(Point(std::vector<FT>({1., 0.}))); // points.emplace_back(Point(std::vector<FT>({0., 1.}))); // points.emplace_back(Point(std::vector<FT>({2., 1.}))); @@ -68,13 +80,13 @@ int main() { // ---------------------------------------------------------------------------- // Init of a Cech complex from points // ---------------------------------------------------------------------------- - Filtration_value max_radius = 10.; + Filtration_value max_radius = 10.; //100.; std::clog << "Hind: Just before the Cech constructor" << std::endl; Cech_complex cech_complex_from_points(points, max_radius); std::clog << "Hind: Just after the Cech constructor" << std::endl; Simplex_tree stree; - cech_complex_from_points.create_complex(stree, 3); + cech_complex_from_points.create_complex(stree, 3); //6 // ---------------------------------------------------------------------------- // Display information about the one skeleton Cech complex // ---------------------------------------------------------------------------- |