-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
Broadcasting tuples in Julia 0.5 #291
Comments
I want this capability as well! |
I don't think it's practical to backport (cc @pabloferz). |
There's a one-liner on that PR that could be backported to 0.5 @inline broadcast{N}(f, t::NTuple{N}, ts::Vararg{NTuple{N}}) = map(f, t, ts...) This would probably be enough to satisfy most of people's needs when broadcasting over tuples. Unfortunately, handling mixtures of arrays, tuples and/or scalars is too disruptive to be back-portable. |
@pabloferz for my use case that should do the trick. |
Has Julia 0.6 lost the ability to broadcast tuples? The following does not work
|
Julia
master
has the ability to broadcast tuples (PR JuliaLang/julia#16986), which is incredibly handy. Is it possible to backport this feature to Julia 0.5 withCompat
?The text was updated successfully, but these errors were encountered: