Skip to content

Commit a07687c

Browse files
author
Hicham Janati
committed
fix transpose in sinkhorn barycenters
1 parent 726e84e commit a07687c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ot/bregman.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1511,7 +1511,7 @@ def barycenter_sinkhorn(A, M, reg, weights=None, numItermax=1000,
15111511

15121512
for ii in range(numItermax):
15131513

1514-
UKv = u * nx.dot(K, A / nx.dot(K, u))
1514+
UKv = u * nx.dot(K.T, A / nx.dot(K, u))
15151515
u = (u.T * geometricBar(weights, UKv)).T / UKv
15161516

15171517
if ii % 10 == 1:

0 commit comments

Comments
 (0)