-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate frexp{T<:AbstractFloat}(A::Array{T}) in favor of broadcast ? #19817
Comments
Yes, we probably should deprecate it, though as you point out, the fact that there is no way to recreate this functionality via |
The vectorized version of this is pretty weird. Is there a use case for getting these two arrays of values? Unlike other vectorized functions, returning a tuple of two arrays doesn't compose naturally with most other functions. |
If you just want an array of |
(I |
I think we just deprecate and say it is no longer available. We don't provide vectorised forms of other 2-output functions (e.g. |
Sorry, I accidentally pushed to master. Fixed by 2e0b001. |
Now that we have
.
for broadcasting, the methodfrexp{T<:AbstractFloat}(A::Array{T})
doesn't seem as useful as it once did?Currently the method returns
(F,E)
whereF
is an array of 'significands' andE
is an array of 'exponents'. The behavior with the broadcast would instead return an array of tuples.@ScottPJones also mentioned on gitter that it is also over specified, it only works for Array, not any AbstractArray
The text was updated successfully, but these errors were encountered: