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)]
def node_init(self): assert dtypes.is_float(self.dtype)