summaryrefslogtreecommitdiff
path: root/src/cython/include/Witness_complex_interface.h
diff options
context:
space:
mode:
authorvrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-01-25 08:59:20 +0000
committervrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-01-25 08:59:20 +0000
commitad9c182c0ffa8b517cd20d174de823db05250514 (patch)
treedc04f37ac0b8b3f42c36f6a608017d0d49c854f7 /src/cython/include/Witness_complex_interface.h
parentbe37aaeadc31ed10ede53393237d939d4aa47c82 (diff)
Fix rips complex with the new interface
Remove mini simplex tree Fix persistent cohomology doc - only simplex tree used Remove useless type definition in Cython C++ interfaces git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/ST_cythonize@2003 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: fff43192b00df1c70d59109a6c14932013992ff1
Diffstat (limited to 'src/cython/include/Witness_complex_interface.h')
-rw-r--r--src/cython/include/Witness_complex_interface.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cython/include/Witness_complex_interface.h b/src/cython/include/Witness_complex_interface.h
index ab99adf5..a753bc1d 100644
--- a/src/cython/include/Witness_complex_interface.h
+++ b/src/cython/include/Witness_complex_interface.h
@@ -40,6 +40,8 @@ namespace witness_complex {
class Witness_complex_interface {
typedef typename Simplex_tree<>::Simplex_handle Simplex_handle;
+ typedef typename Simplex_tree<>::Filtration_value Filtration_value;
+ typedef typename Simplex_tree<>::Vertex_handle Vertex_handle;
typedef typename std::pair<Simplex_handle, bool> Insertion_result;
using Simplex = std::vector<Vertex_handle>;
using Filtered_complex = std::pair<Simplex, Filtration_value>;
@@ -51,7 +53,7 @@ class Witness_complex_interface {
std::vector<std::vector< int > > knn;
std::vector<std::vector<double>> landmarks;
Gudhi::subsampling::pick_n_random_points(points, number_of_landmarks, std::back_inserter(landmarks));
- Gudhi::witness_complex::construct_closest_landmark_table(points, landmarks, knn);
+ Gudhi::witness_complex::construct_closest_landmark_table<Filtration_value>(points, landmarks, knn);
Gudhi::witness_complex::witness_complex(knn, number_of_landmarks, points[0].size(), simplex_tree_);
}