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)
Beispiel #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)
 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)
Beispiel #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)