From 04370bae13251d0bcce205f253fb758f91fdf207 Mon Sep 17 00:00:00 2001 From: Marc Glisse Date: Tue, 15 Nov 2022 19:11:20 +0100 Subject: Also provide ssize_t for wasserstein I think I'll merge the 2 files later. --- src/python/gudhi/hera/wasserstein.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/python/gudhi/hera/wasserstein.cc b/src/python/gudhi/hera/wasserstein.cc index b1fce1e7..3516352e 100644 --- a/src/python/gudhi/hera/wasserstein.cc +++ b/src/python/gudhi/hera/wasserstein.cc @@ -8,10 +8,16 @@ * - YYYY/MM Author: Description of the modification */ -#include // Hera - #include +#ifdef _MSC_VER +// https://github.com/grey-narn/hera/issues/3 +// ssize_t is a non-standard type (well, posix) +using py::ssize_t; +#endif + +#include // Hera + double wasserstein_distance( Dgm d1, Dgm d2, double wasserstein_power, double internal_p, -- cgit v1.2.3