```
if np.iscomplexobj(reg):
```