Ejemplo n.º 1
0
 def test_set_array_increment(self):
     x = np.zeros((5, 5), dtype=int)
     crh.set_array(x, self.c, 5)
     crh.set_array(x, self.c, 5, 'add')
     assert_array_equal(x, self.dense * 5 * 2)
Ejemplo n.º 2
0
 def test_set_array_increment(self):
     x = np.zeros((5, 5), dtype=int)
     crh.set_array(x, self.c, 5)
     crh.set_array(x, self.c, 5, 'add')
     assert_array_equal(x, self.dense * 5 * 2)
Ejemplo n.º 3
0
 def test_set_array(self):
     x = np.zeros((5, 5), dtype=int)
     crh.set_array(x, self.c, 5)
     assert_array_equal(x, self.dense * 5)
Ejemplo n.º 4
0
 def test_set_array(self):
     x = np.zeros((5, 5), dtype=int)
     crh.set_array(x, self.c, 5)
     assert_array_equal(x, self.dense * 5)