示例#1
0
 def node_init(self):
   assert dtypes.is_float(self.elt_type), \
       "Expected fields of complex to be floating, got %s" % self.elt_type
   assert dtypes.is_complex(self.dtype)
   self._fields_ = [('real', self.elt_type), ('imag', self.elt_type)]
示例#2
0
 def node_init(self):
   assert dtypes.is_float(self.dtype)