예제 #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)