예제 #1
0
 def test_recipr0(self):
     X = np.array([[2, 1], [-4, 0]])
     Y = tools.recipr0(X)
     assert_almost_equal(Y, np.array([[0.5, 1], [-0.25, 0]]))
예제 #2
0
 def test_recipr0(self):
     X = np.array([[2, 1], [-4, 0]])
     Y = tools.recipr0(X)
     assert_almost_equal(Y, np.array([[0.5, 1], [-0.25, 0]]))