<div dir="ltr"><div dir="ltr">On Mon, May 25, 2020 at 10:36 AM Sebastian Berg <<a href="mailto:sebastian@sipsolutions.net">sebastian@sipsolutions.net</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mon, 2020-05-25 at 10:09 -0400, Brian Racey wrote:<br>
> Would a "complex default" mode ever make it into numpy, to behave<br>
> more like<br>
> Matlab and other packages with respect to complex number handling?<br>
> Sure it<br>
> would make it marginally slower if enabled, but it might open the<br>
> door to<br>
> better compatibility when porting code to Python.<br>
> <br>
<br>
I think the SciPy versions may have such a default, or there is such a<br>
functionality hidden somewhere (maybe even the switching behaviour).<br>
I am not sure anyone actually uses those, so it may not be a good idea<br>
to use them to be honest.<br></blockquote><div><br></div><div>The versions in `np.lib.scimath` behave like this. Of course, people do use them when they want to deal with real numbers as subsets of the complex numbers.</div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Robert Kern</div></div>