diff options
author | tlacombe <lacombe1993@gmail.com> | 2020-03-10 17:41:38 +0100 |
---|---|---|
committer | tlacombe <lacombe1993@gmail.com> | 2020-03-10 17:41:38 +0100 |
commit | 4aea5deab6ce4cbb491f4c9c2b7e9f023efbbe01 (patch) | |
tree | ce370e35fee402bf0f1bf334e40eed978c56306f /src/python/gudhi/wasserstein.py | |
parent | 967ceab26b09ad74e0cff0d84429a766af267f6b (diff) |
changed output of matching as a (n x 2) array, adapted tests and doc
Diffstat (limited to 'src/python/gudhi/wasserstein.py')
-rw-r--r-- | src/python/gudhi/wasserstein.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python/gudhi/wasserstein.py b/src/python/gudhi/wasserstein.py index 9efa946e..9e4dc7d5 100644 --- a/src/python/gudhi/wasserstein.py +++ b/src/python/gudhi/wasserstein.py @@ -88,7 +88,7 @@ def wasserstein_distance(X, Y, matching=False, order=2., internal_p=2.): if not matching: return 0. else: - return 0., [] + return 0., np.array([]) else: if not matching: return _perstot(Y, order, internal_p) |