示例#1
0
 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)
示例#2
0
 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)
示例#3
0
 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)
示例#4
0
 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)
示例#5
0
 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)
示例#6
0
 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)