summaryrefslogtreecommitdiff
path: root/geom_matching/wasserstein/src/wasserstein.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'geom_matching/wasserstein/src/wasserstein.cpp')
-rw-r--r--geom_matching/wasserstein/src/wasserstein.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/geom_matching/wasserstein/src/wasserstein.cpp b/geom_matching/wasserstein/src/wasserstein.cpp
index fc1b662..2c536ed 100644
--- a/geom_matching/wasserstein/src/wasserstein.cpp
+++ b/geom_matching/wasserstein/src/wasserstein.cpp
@@ -79,7 +79,8 @@ double wassersteinDistVec(const std::vector<DiagramPoint>& A,
#else
AuctionRunnerJac auction(A, B, q, delta, _internal_p);
#endif
- return auction.getWassersteinDistance();
+ double result = auction.getWassersteinDistance();
+ return result;
}
double wassersteinCostVec(const std::vector<DiagramPoint>& A,
@@ -119,7 +120,8 @@ double wassersteinCostVec(const std::vector<DiagramPoint>& A,
#else
AuctionRunnerJac auction(A, B, q, delta, _internal_p);
#endif
- return auction.getWassersteinCost();
+ double result = auction.getWassersteinCost();
+ return result;
}
bool readDiagramPointSet(const std::string& fname, std::vector<std::pair<double, double>>& result)