Skip to content

Commit 24a53ef

Browse files
committed
add contributor
1 parent 7ffd4fe commit 24a53ef

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ The contributors to this library are:
165165
* [Antoine Rolet](https://arolet.github.io/)
166166
* Erwan Vautier (Gromov-Wasserstein)
167167
* [Kilian Fatras](https://kilianfatras.github.io/)
168+
* [Alain Rakotomamonjy](https://sites.google.com/site/alainrakotomamonjy/home)
168169

169170
This toolbox benefit a lot from open source research and we would like to thank the following persons for providing some code (in various languages):
170171

ot/bregman.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,15 +536,15 @@ def greenkhorn(a, b, M, reg, numItermax=10000, stopThr=1e-9, verbose=False, log=
536536
G[i_1, :] = u[i_1] * K[i_1, :] * v
537537

538538
viol[i_1] = u[i_1] * K[i_1, :].dot(v) - a[i_1]
539-
viol_2 = viol_2 + (K[i_1, :].T * (u[i_1] - old_u) * v)
539+
viol_2 += (K[i_1, :].T * (u[i_1] - old_u) * v)
540540

541541
else:
542542
old_v = v[i_2]
543543
v[i_2] = b[i_2] / (K[:, i_2].T.dot(u))
544544
G[:, i_2] = u * K[:, i_2] * v[i_2]
545545
#aviol = (G@one_m - a)
546546
#aviol_2 = (G.T@one_n - b)
547-
viol = viol + (-old_v + v[i_2]) * K[:, i_2] * u
547+
viol += (-old_v + v[i_2]) * K[:, i_2] * u
548548
viol_2[i_2] = v[i_2] * K[:, i_2].dot(u) - b[i_2]
549549

550550
#print('b',np.max(abs(aviol -viol)),np.max(abs(aviol_2 - viol_2)))

0 commit comments

Comments
 (0)