示例#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)