Skip to content

Commit

Permalink
bug fix of #1
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerwwww committed Mar 22, 2022
1 parent 3f56516 commit 6e730c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygmtools/numpy_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def rrwm(K: np.ndarray, n1: np.ndarray, n2: np.ndarray, n1max, n2max, x0: np.nda
n = np.linalg.norm(v, ord=1, axis=1, keepdims=True)
v = np.matmul(v, 1 / n)

if np.linalg.norm((v - last_v).squeeze(), ord='fro') < 1e-5:
if np.linalg.norm((v - last_v).squeeze(axis=-1), ord='fro') < 1e-5:
break

return v.reshape((batch_num, n2max, n1max)).transpose((0, 2, 1))
Expand Down

0 comments on commit 6e730c9

Please sign in to comment.