I asked a similar question a while ago, and got very detailed and helpful advice which I think answers your question.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Trouble defining `broadcast` method between custom array type and `Number` | 3 | 798 | May 11, 2017 | |
| Broadcasting like a Number | 7 | 937 | February 10, 2017 | |
| Enabling broadcasting for named tuples alt. broadcast? broadcasted? broadcastable? BroadcastStyle? | 1 | 573 | February 13, 2023 | |
| Efficient Broadcast of Heterogeneous AbstractArrays? | 10 | 1461 | April 17, 2017 | |
| How to control the output of broadcast? | 7 | 1372 | February 28, 2020 |