コード例 #1
0
ファイル: rubik_test_dtypes.py プロジェクト: hiive/rubik
 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
ファイル: rubik_test_dtypes.py プロジェクト: hiive/rubik
 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
ファイル: rubik_test_dtypes.py プロジェクト: hiive/rubik
 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
ファイル: rubik_test_dtypes.py プロジェクト: Borsos/rubik
 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
ファイル: rubik_test_dtypes.py プロジェクト: Borsos/rubik
 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
ファイル: rubik_test_dtypes.py プロジェクト: Borsos/rubik
 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)