From af99d3ff66062811a81454ea03e6b831a1292ae4 Mon Sep 17 00:00:00 2001 From: RĂ©mi Flamary Date: Thu, 31 May 2018 11:26:32 +0200 Subject: add smooth.py + first tests --- test/test_smooth.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') diff --git a/test/test_smooth.py b/test/test_smooth.py index f951bf9..4ca44f8 100644 --- a/test/test_smooth.py +++ b/test/test_smooth.py @@ -30,4 +30,8 @@ def test_smooth_ot_dual(): u, G.sum(1), atol=1e-05) # cf convergence sinkhorn np.testing.assert_allclose( u, G.sum(0), atol=1e-05) # cf convergence sinkhorn + + + G2 = ot.sinkhorn(u, u, M, 1, stopThr=1e-10) + np.testing.assert_allclose( G, G2 , atol=1e-05) \ No newline at end of file -- cgit v1.2.3