-
Notifications
You must be signed in to change notification settings - Fork 12
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
Overload broadcasting behavour #263
Comments
oh nice so this is the way to avoid writing Ref everywhere that I was looking for... :D I'll try to do asap, if you have any working code please feel free to PR even if half-baked or so. Q: Is there some docs that guarantees how supported/sustainable/portable this is w.r.t. julia stdlib? The docs here https://docs.julialang.org/en/v1/manual/interfaces/#man-interfaces-broadcasting are the only authoritative ones, right? If I get it right, these basically say that your oneliners (one per struct type) are completely sufficient, right? |
This is indeed part of the julia public API. You can also do it with a union Broadcast.broadcastable(x:Union{Model, Species,Reaction,...}) = Ref(x) |
@oxinabox I'll release this shortly, dependency for this should be 1.7 |
Target functionality
I often find myself writing functions that take a
Model
and either sSpecies
or aReaction
etc.And I want to broadcast this across a list of reactions.
foo.(model, rs)
Optional: Suggestions for implementation
etc
The text was updated successfully, but these errors were encountered: