Exemplo n.º 1
0
 def test_66(self):
     nan = np.nan
     test_res = tools.nan_dot(self.mx_6, self.mx_6)
     expected_res = np.array([[7., 10.], [15., 22.]])
     assert_array_equal(test_res, expected_res)
Exemplo n.º 2
0
 def test_24(self):
     nan = np.nan
     test_res = tools.nan_dot(self.mx_2, self.mx_4)
     expected_res = np.array([[nan, 0.], [5., 0.]])
     assert_array_equal(test_res, expected_res)
Exemplo n.º 3
0
 def test_25(self):
     nan = np.nan
     test_res = tools.nan_dot(self.mx_2, self.mx_5)
     expected_res = np.array([[0., nan], [0., 5.]])
     assert_array_equal(test_res, expected_res)
Exemplo n.º 4
0
 def test_41(self):
     nan = np.nan
     test_res = tools.nan_dot(self.mx_4, self.mx_1)
     expected_res = np.array([[nan, 1.], [nan, 1.]])
     assert_array_equal(test_res, expected_res)
Exemplo n.º 5
0
 def test_32(self):
     nan = np.nan
     test_res = tools.nan_dot(self.mx_3, self.mx_2)
     expected_res = np.array([[0., 0.], [0., 0.]])
     assert_array_equal(test_res, expected_res)
Exemplo n.º 6
0
 def test_11(self):
     test_res = tools.nan_dot(self.mx_1, self.mx_1)
     expected_res = np.array([[np.nan, np.nan], [np.nan, 11.]])
     assert_array_equal(test_res, expected_res)
Exemplo n.º 7
0
 def test_12(self):
     nan = np.nan
     test_res = tools.nan_dot(self.mx_1, self.mx_2)
     expected_res = np.array([[nan, nan], [nan, nan]])
     assert_array_equal(test_res, expected_res)
Exemplo n.º 8
0
 def test_25(self):
     nan = np.nan
     test_res = tools.nan_dot(self.mx_2, self.mx_5)
     expected_res = np.array([[0.0, nan], [0.0, 5.0]])
     assert_array_equal(test_res, expected_res)
Exemplo n.º 9
0
 def test_66(self):
     nan = np.nan
     test_res = tools.nan_dot(self.mx_6, self.mx_6)
     expected_res = np.array([[7.0, 10.0], [15.0, 22.0]])
     assert_array_equal(test_res, expected_res)
Exemplo n.º 10
0
 def test_32(self):
     nan = np.nan
     test_res = tools.nan_dot(self.mx_3, self.mx_2)
     expected_res = np.array([[0.0, 0.0], [0.0, 0.0]])
     assert_array_equal(test_res, expected_res)
Exemplo n.º 11
0
 def test_24(self):
     nan = np.nan
     test_res = tools.nan_dot(self.mx_2, self.mx_4)
     expected_res = np.array([[nan, 0.0], [5.0, 0.0]])
     assert_array_equal(test_res, expected_res)
Exemplo n.º 12
0
 def test_41(self):
     nan = np.nan
     test_res = tools.nan_dot(self.mx_4, self.mx_1)
     expected_res = np.array([[nan, 1.0], [nan, 1.0]])
     assert_array_equal(test_res, expected_res)
Exemplo n.º 13
0
 def test_12(self):
     nan = np.nan
     test_res = tools.nan_dot(self.mx_1, self.mx_2)
     expected_res = np.array([[nan, nan], [nan, nan]])
     assert_array_equal(test_res, expected_res)
Exemplo n.º 14
0
 def test_11(self):
     test_res = tools.nan_dot(self.mx_1, self.mx_1)
     expected_res = np.array([[np.nan, np.nan], [np.nan, 11.0]])
     assert_array_equal(test_res, expected_res)
Exemplo n.º 15
0
 def test_23(self):
     nan = np.nan
     test_res = tools.nan_dot(self.mx_2, self.mx_3)
     expected_res = np.array([[ 0.,  0.], [ 0.,  0.]])
     assert_array_equal(test_res, expected_res)
Exemplo n.º 16
0
 def test_23(self):
     nan = np.nan
     test_res = tools.nan_dot(self.mx_2, self.mx_3)
     expected_res = np.array([[0.0, 0.0], [0.0, 0.0]])
     assert_array_equal(test_res, expected_res)