def test_best_precise_dtype_complex(self): for npt in np.complex_, np.complex64, np.complex128: self.assertEqual(cb.best_precise_dtype(npt), np.complex128)
def test_best_precise_dtype_float(self): for npt in np.float_, np.float16, np.float32, np.float64: self.assertEqual(cb.best_precise_dtype(npt), np.float64)
def test_best_precise_dtype_uint(self): for npt in np.uint8, np.uint16, np.uint32, np.uint64: self.assertEqual(cb.best_precise_dtype(npt), np.uint64)
def test_best_precise_dtype_complex(self): for npt in np.complex_, np.complex64, np.complex128: self.assertEqual(cb.best_precise_dtype(npt), np.complex128)
def test_best_precise_dtype_float(self): for npt in np.float_, np.float16, np.float32, np.float64: self.assertEqual(cb.best_precise_dtype(npt), np.float64)
def test_best_precise_dtype_uint(self): for npt in np.uint8, np.uint16, np.uint32, np.uint64: self.assertEqual(cb.best_precise_dtype(npt), np.uint64)