-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make StructArrays broadcast aware (#136)
* Make StructArrays broadcast aware Fixes #89 * Limit circumstances in which broadcasting returns a StructArray While allowing broadcasting to return a StructArray, this limits it to cases where: - no other arrays in the broadcast operation, including those wrapped by the StructArray, have non-default BroadcastStyle - the eltype returned from the function is a struct type It should be straightforward to define precedence rules to handle other cases, e.g., StructArrays of CuArrays. * Add a test for custom-broadcasting internal arrays * Embrace the MethodError Co-authored-by: Keno Fischer <keno@alumni.harvard.edu>
- Loading branch information
Showing
2 changed files
with
53 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters