示例#1
0
 def test_i(self):
     block = bm.get_block_from_matrix(self.matrix, self.dim_block,
                                      self.n_block, 2, 2)
     self.assertTrue(np.array_equal(block, self.i))
示例#2
0
 def test_e(self):
     block = bm.get_block_from_matrix(self.matrix, self.dim_block,
                                      self.n_block, 1, 1)
     self.assertTrue(np.array_equal(block, self.e))