diff options
author | glisse <glisse@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2018-07-22 10:55:07 +0000 |
---|---|---|
committer | glisse <glisse@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2018-07-22 10:55:07 +0000 |
commit | 5c5d7f3e7c296e508de4969d1844cb50ffa923d0 (patch) | |
tree | 2bd4ec1b6eef5665c292547bd96997bb9625a747 /src/Bottleneck_distance/include | |
parent | 8f6fffafb8afb8e08ba7bb06b19b0a0de557f5fb (diff) |
Mark functions as inline.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/trunk@3699 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: 431a0f7e2169ac7ebbdc6e4bd3458176030261ff
Diffstat (limited to 'src/Bottleneck_distance/include')
-rw-r--r-- | src/Bottleneck_distance/include/gudhi/Bottleneck.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Bottleneck_distance/include/gudhi/Bottleneck.h b/src/Bottleneck_distance/include/gudhi/Bottleneck.h index b0fc3949..7a553006 100644 --- a/src/Bottleneck_distance/include/gudhi/Bottleneck.h +++ b/src/Bottleneck_distance/include/gudhi/Bottleneck.h @@ -36,7 +36,7 @@ namespace Gudhi { namespace persistence_diagram { -double bottleneck_distance_approx(Persistence_graph& g, double e) { +inline double bottleneck_distance_approx(Persistence_graph& g, double e) { double b_lower_bound = 0.; double b_upper_bound = g.diameter_bound(); const double alpha = std::pow(g.size(), 1. / 5.); @@ -66,7 +66,7 @@ double bottleneck_distance_approx(Persistence_graph& g, double e) { return (b_lower_bound + b_upper_bound) / 2.; } -double bottleneck_distance_exact(Persistence_graph& g) { +inline double bottleneck_distance_exact(Persistence_graph& g) { std::vector<double> sd = g.sorted_distances(); long lower_bound_i = 0; long upper_bound_i = sd.size() - 1; |