summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Witness_complex/example/witness_complex_from_file.cpp1
-rw-r--r--src/Witness_complex/example/witness_complex_sphere.cpp1
-rw-r--r--src/Witness_complex/include/gudhi/Landmark_choice_by_furthest_point.h8
-rw-r--r--src/Witness_complex/include/gudhi/Landmark_choice_by_random_point.h8
-rw-r--r--src/Witness_complex/include/gudhi/Witness_complex.h9
-rw-r--r--src/Witness_complex/test/simple_witness_complex.cpp5
-rw-r--r--src/Witness_complex/test/witness_complex_points.cpp1
7 files changed, 26 insertions, 7 deletions
diff --git a/src/Witness_complex/example/witness_complex_from_file.cpp b/src/Witness_complex/example/witness_complex_from_file.cpp
index 6add4e0a..72caf30b 100644
--- a/src/Witness_complex/example/witness_complex_from_file.cpp
+++ b/src/Witness_complex/example/witness_complex_from_file.cpp
@@ -33,6 +33,7 @@
#include "gudhi/reader_utils.h"
using namespace Gudhi;
+using namespace Gudhi::witness_complex;
typedef std::vector< Vertex_handle > typeVectorVertex;
typedef std::vector< std::vector <double> > Point_Vector;
diff --git a/src/Witness_complex/example/witness_complex_sphere.cpp b/src/Witness_complex/example/witness_complex_sphere.cpp
index 1fa0fc42..d73445b9 100644
--- a/src/Witness_complex/example/witness_complex_sphere.cpp
+++ b/src/Witness_complex/example/witness_complex_sphere.cpp
@@ -38,6 +38,7 @@
#include "generators.h"
using namespace Gudhi;
+using namespace Gudhi::witness_complex;
typedef std::vector< Vertex_handle > typeVectorVertex;
//typedef std::vector< std::vector <double> > Point_Vector;
diff --git a/src/Witness_complex/include/gudhi/Landmark_choice_by_furthest_point.h b/src/Witness_complex/include/gudhi/Landmark_choice_by_furthest_point.h
index 6ac59ae9..050286f2 100644
--- a/src/Witness_complex/include/gudhi/Landmark_choice_by_furthest_point.h
+++ b/src/Witness_complex/include/gudhi/Landmark_choice_by_furthest_point.h
@@ -23,6 +23,10 @@
#ifndef GUDHI_LANDMARK_CHOICE_BY_FURTHEST_POINT_H_
#define GUDHI_LANDMARK_CHOICE_BY_FURTHEST_POINT_H_
+namespace Gudhi {
+
+namespace witness_complex {
+
/**
* \class Landmark_choice_by_furthest_point
* \brief The class `Landmark_choice_by_furthest_point` allows to construct the matrix
@@ -96,4 +100,8 @@ public:
};
+}
+
+}
+
#endif
diff --git a/src/Witness_complex/include/gudhi/Landmark_choice_by_random_point.h b/src/Witness_complex/include/gudhi/Landmark_choice_by_random_point.h
index fa822591..038deff6 100644
--- a/src/Witness_complex/include/gudhi/Landmark_choice_by_random_point.h
+++ b/src/Witness_complex/include/gudhi/Landmark_choice_by_random_point.h
@@ -23,6 +23,10 @@
#ifndef GUDHI_LANDMARK_CHOICE_BY_RANDOM_POINT_H_
#define GUDHI_LANDMARK_CHOICE_BY_RANDOM_POINT_H_
+namespace Gudhi {
+
+namespace witness_complex {
+
/**
* \class Landmark_choice_by_random_point
* \brief The class `Landmark_choice_by_random_point` allows to construct the matrix
@@ -81,4 +85,8 @@ public:
};
+}
+
+}
+
#endif
diff --git a/src/Witness_complex/include/gudhi/Witness_complex.h b/src/Witness_complex/include/gudhi/Witness_complex.h
index 915e445c..8938e59d 100644
--- a/src/Witness_complex/include/gudhi/Witness_complex.h
+++ b/src/Witness_complex/include/gudhi/Witness_complex.h
@@ -44,7 +44,8 @@
namespace Gudhi {
-
+ namespace witness_complex {
+
/**
\class Witness_complex
\brief Constructs the witness complex for the given set of witnesses and landmarks.
@@ -256,13 +257,13 @@ namespace Gudhi {
return false;
}
}
- return true; // Arrive here if the not_witnessed check failed all the time
+ return true;
}
-}; //class Witness_complex
-
+ }; //class Witness_complex
+ } //namespace witness_complex
} // namespace Guhdi
diff --git a/src/Witness_complex/test/simple_witness_complex.cpp b/src/Witness_complex/test/simple_witness_complex.cpp
index ea38b5c0..86f5bcd1 100644
--- a/src/Witness_complex/test/simple_witness_complex.cpp
+++ b/src/Witness_complex/test/simple_witness_complex.cpp
@@ -26,11 +26,10 @@
#include <gudhi/Witness_complex.h>
using namespace Gudhi;
+using namespace Gudhi::witness_complex;
typedef std::vector< Vertex_handle > typeVectorVertex;
typedef Witness_complex<Simplex_tree<>> WitnessComplex;
-//typedef std::pair<typeVectorVertex, Filtration_value> typeSimplex;
-//typedef std::pair< Simplex_tree<>::Simplex_handle, bool > typePairSimplexBool;
int main (int argc, char * const argv[])
{
@@ -50,5 +49,5 @@ int main (int argc, char * const argv[])
typeVectorVertex witness11 = {5,6,1,0,2,3,4}; knn.push_back(witness11);
typeVectorVertex witness12 = {1,6,0,5,2,3,4}; knn.push_back(witness12);
WitnessComplex witnessComplex(knn, complex, 7, 7);
- assert(witnessComplex.is_witness_complex(knn, true));
+ assert(witnessComplex.is_witness_complex(knn, false));
}
diff --git a/src/Witness_complex/test/witness_complex_points.cpp b/src/Witness_complex/test/witness_complex_points.cpp
index 0a50101d..e9fac9b8 100644
--- a/src/Witness_complex/test/witness_complex_points.cpp
+++ b/src/Witness_complex/test/witness_complex_points.cpp
@@ -29,6 +29,7 @@
using namespace Gudhi;
+using namespace Gudhi::witness_complex;
typedef std::vector< Vertex_handle > typeVectorVertex;
typedef Witness_complex<Simplex_tree<>> WitnessComplex;