Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)