def test_eye(self): a0 = ctf.identity(4) a1 = ctf.eye(4) self.assertTrue(ctf.all(a0 == a1)) a1 = ctf.eye(4, dtype=numpy.complex128) self.assertTrue(a1.dtype == numpy.complex128)
def test_eye(self): a0 = ctf.identity(4) a1 = ctf.eye(4) self.assertTrue(ctf.all(a0==a1)) a1 = ctf.eye(4, dtype=numpy.complex128) self.assertTrue(a1.dtype == numpy.complex128)