summaryrefslogtreecommitdiff
path: root/src/python/gudhi/hera/wasserstein.cc
diff options
context:
space:
mode:
authorMathieuCarriere <mathieu.carriere3@gmail.com>2022-11-21 10:45:21 +0100
committerMathieuCarriere <mathieu.carriere3@gmail.com>2022-11-21 10:45:21 +0100
commit2438a6c18b606dc49468895d9ffdb5dcc8f92439 (patch)
treeda65a5a7801591ab1ba5c9e82b493669087f4813 /src/python/gudhi/hera/wasserstein.cc
parent8e6c8ac6d6acc818d60cbc15a13af763a36ad03a (diff)
parentf361ecc561ea9a3cc8a4d8408bb8e094f211247e (diff)
Merge branch 'master' of https://github.com/GUDHI/gudhi-devel into perslay
Diffstat (limited to 'src/python/gudhi/hera/wasserstein.cc')
-rw-r--r--src/python/gudhi/hera/wasserstein.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/python/gudhi/hera/wasserstein.cc b/src/python/gudhi/hera/wasserstein.cc
index fa0cf8aa..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 <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,