summaryrefslogtreecommitdiff
path: root/include/gudhi/Bottleneck.h
diff options
context:
space:
mode:
authorGard Spreemann <gspreemann@gmail.com>2017-10-09 10:47:31 +0200
committerGard Spreemann <gspreemann@gmail.com>2017-10-09 10:47:31 +0200
commit673b6bb63befd7e591e52c13f43e5db53e5b29bd (patch)
tree3f15d96ef39bf0c6cf656d176ff1c437cacf5988 /include/gudhi/Bottleneck.h
parent9466ce44e348487fc04a1fda493ed659ae92b775 (diff)
parent866f6ce614e9c09c97fed12c8c0c2c9fb84fad3f (diff)
Merge tag 'upstream/2.0.1' into dfsg/latest
Upstream's 2.0.1 release.
Diffstat (limited to 'include/gudhi/Bottleneck.h')
-rw-r--r--include/gudhi/Bottleneck.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/gudhi/Bottleneck.h b/include/gudhi/Bottleneck.h
index b90a0ee0..8c97dce9 100644
--- a/include/gudhi/Bottleneck.h
+++ b/include/gudhi/Bottleneck.h
@@ -101,11 +101,11 @@ double bottleneck_distance_exact(Persistence_graph& g) {
*/
template<typename Persistence_diagram1, typename Persistence_diagram2>
double bottleneck_distance(const Persistence_diagram1 &diag1, const Persistence_diagram2 &diag2,
- double e = std::numeric_limits<double>::min()) {
+ double e = (std::numeric_limits<double>::min)()) {
Persistence_graph g(diag1, diag2, e);
if (g.bottleneck_alive() == std::numeric_limits<double>::infinity())
return std::numeric_limits<double>::infinity();
- return std::max(g.bottleneck_alive(), e == 0. ? bottleneck_distance_exact(g) : bottleneck_distance_approx(g, e));
+ return (std::max)(g.bottleneck_alive(), e == 0. ? bottleneck_distance_exact(g) : bottleneck_distance_approx(g, e));
}
} // namespace persistence_diagram