We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba36f16 commit 1ce74b8Copy full SHA for 1ce74b8
src/array_partition.jl
@@ -225,10 +225,7 @@ end
225
Returns the entry at index `j...` of every partition of `A`.
226
"""
227
Base.@propagate_inbounds function Base.getindex(A::ArrayPartition, i::Colon, j...)
228
- @boundscheck 0 < i <= length(A.x) || throw(BoundsError(A.x, i))
229
- @inbounds b = A.x[i]
230
- @boundscheck checkbounds(b, j...)
231
- @inbounds return b[j...]
+ return getindex.(A.x, (j...,))
232
end
233
234
0 commit comments