diff options
author | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2015-04-07 09:43:15 +0000 |
---|---|---|
committer | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2015-04-07 09:43:15 +0000 |
commit | 3fcbf94481bced31a342f6accec015d8d057a38b (patch) | |
tree | d2d617fc0280e218a58479241b0f67f479b09c75 /src/Bottleneck/include/gudhi | |
parent | 3e19fe52808dc450fb1d24d5aaf4bbd25081a24c (diff) |
Fix windows errors
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/windowsbuildfix@543 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: 267a1f3345b26d72c3722024fa1769dd41b6075b
Diffstat (limited to 'src/Bottleneck/include/gudhi')
-rw-r--r-- | src/Bottleneck/include/gudhi/Persistence_diagrams_graph.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Bottleneck/include/gudhi/Persistence_diagrams_graph.h b/src/Bottleneck/include/gudhi/Persistence_diagrams_graph.h index 7e278209..a430fb4c 100644 --- a/src/Bottleneck/include/gudhi/Persistence_diagrams_graph.h +++ b/src/Bottleneck/include/gudhi/Persistence_diagrams_graph.h @@ -33,9 +33,6 @@ namespace Gudhi { namespace bottleneck { -// Diagram_point is the type of the persistence diagram's points -typedef typename std::pair<double, double> Diagram_point; - // Return the used index for encoding none of the points int null_point_index(); @@ -44,6 +41,9 @@ int null_point_index(); class Persistence_diagrams_graph { public: + // Diagram_point is the type of the persistence diagram's points + typedef typename std::pair<double, double> Diagram_point; + // Persistence_diagram1 and 2 are the types of any externals representations of persistence diagrams. // They have to have an iterator over points, which have to have fields first (for birth) and second (for death). template<typename Persistence_diagram1, typename Persistence_diagram2> @@ -81,7 +81,7 @@ Persistence_diagrams_graph::Persistence_diagrams_graph(Persistence_diagram1& dia swap(u, v); } -Persistence_diagrams_graph::Persistence_diagrams_graph::Persistence_diagrams_graph() +Persistence_diagrams_graph::Persistence_diagrams_graph() : u(), v() { } inline bool Persistence_diagrams_graph::on_the_u_diagonal(int u_point_index) const { @@ -124,7 +124,7 @@ inline std::vector<double>* Persistence_diagrams_graph::sorted_distances() { return new std::vector<double>(sorted_distances.cbegin(), sorted_distances.cend()); } -inline Diagram_point Persistence_diagrams_graph::get_u_point(int u_point_index) const { +inline Persistence_diagrams_graph::Diagram_point Persistence_diagrams_graph::get_u_point(int u_point_index) const { if (!on_the_u_diagonal(u_point_index)) return u.at(u_point_index); Diagram_point projector = v.at(corresponding_point_in_v(u_point_index)); @@ -132,7 +132,7 @@ inline Diagram_point Persistence_diagrams_graph::get_u_point(int u_point_index) return Diagram_point(x, x); } -inline Diagram_point Persistence_diagrams_graph::get_v_point(int v_point_index) const { +inline Persistence_diagrams_graph::Diagram_point Persistence_diagrams_graph::get_v_point(int v_point_index) const { if (!on_the_v_diagonal(v_point_index)) return v.at(v_point_index); Diagram_point projector = u.at(corresponding_point_in_u(v_point_index)); |