def Tdotc(self, fn, dtype): x = np.random.random(10).astype(dtype) y = np.random.random(10).astype(dtype) got = self.blas.dotc(x, y) exp = np.vdot(x, y) self.assertTrue(np.allclose(got, exp))