def test_single_array(self):
""" Test ireduce_ufunc on a single array, not a sequence """
source = np.ones( (16, 16), dtype = np.int)
out = last(ireduce_ufunc(source, np.add, axis = -1))
self.assertTrue(np.allclose(source, out))
评论列表
文章目录