summaryrefslogtreecommitdiff
path: root/test/test_ot.py
diff options
context:
space:
mode:
authorRémi Flamary <remi.flamary@gmail.com>2020-01-30 08:04:36 +0100
committerRémi Flamary <remi.flamary@gmail.com>2020-01-30 08:04:36 +0100
commitf65073faa73b36280a19ff8b9c383e66f8bdbd2b (patch)
treee786f1ec744bbf28928ac72bb705f172b04a4562 /test/test_ot.py
parent9a9b3547837eac56349ce8df92bb5b0565daa2d6 (diff)
comlete documentation
Diffstat (limited to 'test/test_ot.py')
-rw-r--r--test/test_ot.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_ot.py b/test/test_ot.py
index 245a107..47df946 100644
--- a/test/test_ot.py
+++ b/test/test_ot.py
@@ -338,9 +338,9 @@ def test_dual_variables():
np.testing.assert_almost_equal(cost1, log['cost'])
check_duality_gap(a, b, M, G, log['u'], log['v'], log['cost'])
- viol = log['u'][:, None] + log['v'][None, :] - M
+ constraint_violation = log['u'][:, None] + log['v'][None, :] - M
- assert viol.max() < 1e-8
+ assert constraint_violation.max() < 1e-8
def check_duality_gap(a, b, M, G, u, v, cost):