summaryrefslogtreecommitdiff
path: root/geom_matching/wasserstein/example/wasserstein_dist_point_cloud.cpp
diff options
context:
space:
mode:
authorArnur Nigmetov <nigmetov@tugraz.at>2019-02-06 22:45:18 +0100
committerArnur Nigmetov <nigmetov@tugraz.at>2019-02-06 22:45:18 +0100
commitba25f264b5d309efcf77a6b72d1b784ae97f741f (patch)
treefb536fc0d0e9f241e6c7b37b45a94e31d25f1a8f /geom_matching/wasserstein/example/wasserstein_dist_point_cloud.cpp
parent657f73321f04d5d1c4cec8085ec43a73633b96af (diff)
Switch to opts, tolerate max-iterations-exceeded.
1. Use opts.h for command-line parsing in wasserstein_dist. 2. Real relative error at the end of auction is stored in params, params is passed by reference. 3. If -e command line option is given to wasserstein_dist, relative error will be printed. 4. If -t option is given to wasserstein_dist, no exception will be thrown, if maximum number of iterations is exceeded. 5. Run wasserstein_dist -h to see all options.
Diffstat (limited to 'geom_matching/wasserstein/example/wasserstein_dist_point_cloud.cpp')
-rw-r--r--geom_matching/wasserstein/example/wasserstein_dist_point_cloud.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/geom_matching/wasserstein/example/wasserstein_dist_point_cloud.cpp b/geom_matching/wasserstein/example/wasserstein_dist_point_cloud.cpp
index 2f9718e..ab7ff4f 100644
--- a/geom_matching/wasserstein/example/wasserstein_dist_point_cloud.cpp
+++ b/geom_matching/wasserstein/example/wasserstein_dist_point_cloud.cpp
@@ -154,7 +154,7 @@ int main(int argc, char* argv[])
params.max_bids_per_round = ( 9 <= argc ) ? atoi(argv[8]) : 0;
if (params.max_bids_per_round == 0)
- params.max_bids_per_round = std::numeric_limits<size_t>::max();
+ params.max_bids_per_round = std::numeric_limits<decltype(params.max_bids_per_round)>::max();
params.gamma_threshold = (10 <= argc) ? atof(argv[9]) : 0.0;