-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Closed
Description
Recent discussion in ArrayInterface.jl demonstrated that @inbounds
isn't fully propagated when using CartesianIndices
to convert an integer to a CartesianIndex
.
Examples across multiple versions and hardware are more fully demonstrated here JuliaArrays/ArrayInterface.jl#199).
I think the offending line is the missing @propagate_inbounds
here:
Line 1254 in 027071f
function _getindex(::IndexCartesian, A::AbstractArray, I::Vararg{Int,M}) where M |
This could probably be fixed here also:
Line 1242 in 027071f
function _getindex(::IndexLinear, A::AbstractArray, I::Vararg{Int,M}) where M |
I think @timholy and @mbauman wrote the original code here.
Can we just put @propagate_inbounds
in front of these?
Metadata
Metadata
Assignees
Labels
No labels