You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Correct test_mm_convergence for cupy
* Fix bug where number of iterations is limited to 2^31
* Update RELEASES.md
* Replace size_t with long long
* Use uint64_t instead of long long
defemd_c(np.ndarray[double, ndim=1, mode="c"] a, np.ndarray[double, ndim=1, mode="c"] b, np.ndarray[double, ndim=2, mode="c"] M, intmax_iter, int numThreads):
43
+
defemd_c(np.ndarray[double, ndim=1, mode="c"] a, np.ndarray[double, ndim=1, mode="c"] b, np.ndarray[double, ndim=2, mode="c"] M, uint64_tmax_iter, int numThreads):
43
44
"""
44
45
Solves the Earth Movers distance problem and returns the optimal transport matrix
45
46
@@ -75,7 +76,7 @@ def emd_c(np.ndarray[double, ndim=1, mode="c"] a, np.ndarray[double, ndim=1, mod
75
76
target histogram
76
77
M : (ns,nt) numpy.ndarray, float64
77
78
loss matrix
78
-
max_iter : int
79
+
max_iter : uint64_t
79
80
The maximum number of iterations before stopping the optimization
0 commit comments