diff options
author | Marc Glisse <marc.glisse@inria.fr> | 2022-11-15 19:11:20 +0100 |
---|---|---|
committer | Marc Glisse <marc.glisse@inria.fr> | 2022-11-15 19:11:20 +0100 |
commit | 04370bae13251d0bcce205f253fb758f91fdf207 (patch) | |
tree | 2e9d6e3c8c1e09ed68f7c42db6a567b510870a08 | |
parent | 940c5bc058970edbe908e0c7f4c655fbca94a87b (diff) |
Also provide ssize_t for wasserstein
I think I'll merge the 2 files later.
-rw-r--r-- | src/python/gudhi/hera/wasserstein.cc | 10 |
1 files 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/wasserstein.h> // Hera - #include <pybind11_diagram_utils.h> +#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/wasserstein.h> // Hera + double wasserstein_distance( Dgm d1, Dgm d2, double wasserstein_power, double internal_p, |