-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Broadcast shouldn't use inbounds when calling f (#19188)
* Broadcast shouldn't use inbounds when calling f Previously, `broadcast(getindex, A, I...)` would call `getindex` within an at-inbounds context. This patch simply moves the function call so that it will throw a BoundsError appropriately. * Add inbounds elsewhere in broadcast Try to restore some performance by allowing inbounds propagation into _broadcast_getindex.
- Loading branch information
Showing
2 changed files
with
12 additions
and
4 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