Esempio n. 1
0
 def test_recipr(self):
     X = np.array([[2, 1], [-1, 0]])
     Y = tools.recipr(X)
     assert_almost_equal(Y, np.array([[0.5, 1], [0, 0]]))
Esempio n. 2
0
 def test_recipr(self):
     X = np.array([[2, 1], [-1, 0]])
     Y = tools.recipr(X)
     assert_almost_equal(Y, np.array([[0.5, 1], [0, 0]]))