You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As discussed in a couple of places, the z/|z| definition seems clearly better and preferred, also for numpy. Not sure of a timeline for introducing that (breaking changes are always tricky), but I think in this case it's not like they're two equal alternatives. In the standard I think we should go with z/|z|; numpy may not be compliant on that point for a while.
Originally discussed in #153 (comment).
In order to add complex support to
sign
, we need to agree on the definition for complex numbers.NumPy uses
sqrt(z^2)/z
while an arguably more common convention isx/|x|
.For paths forward we have 3 options:
sign
.Questions
See Also
The text was updated successfully, but these errors were encountered: