def test_trivial(self):
""" Test a product of ones """
source = [np.ones((16,), dtype = np.float) for _ in range(10)]
product = last(inanprod(source))
self.assertTrue(np.allclose(product, np.ones_like(product)))
评论列表
文章目录