예제 #1
0
 def __init__(self,
              warn_on_digit_loss=True,
              int_type=np.int64,
              float_type=np.float64):
     IdentityMapper.__init__(self)
     self.warn = warn_on_digit_loss
     self.float_type = float_type
     self.iinfo = np.iinfo(int_type)
예제 #2
0
 def __init__(self, float_type=np.float32):
     IdentityMapper.__init__(self)
     self.float_type = float_type
예제 #3
0
파일: codegen.py 프로젝트: inducer/sumpy
 def __init__(self, warn_on_digit_loss=True, int_type=np.int64,
         float_type=np.float64):
     IdentityMapper.__init__(self)
     self.warn = warn_on_digit_loss
     self.float_type = float_type
     self.iinfo = np.iinfo(int_type)