Esempio 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)
Esempio 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)
Esempio 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)
Esempio 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)
Esempio 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)
Esempio 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)
Esempio 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)
Esempio 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)
Esempio 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)
Esempio 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)
Esempio 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)
Esempio 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)
Esempio 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)
Esempio 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)
Esempio 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)
Esempio 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)