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 70c135e commit 8d223acCopy full SHA for 8d223ac
Project.toml
@@ -1,6 +1,6 @@
1
name = "ArrayInterface"
2
uuid = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
3
-version = "3.2"
+version = "3.2.1"
4
5
[deps]
6
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"
src/indexing.jl
@@ -303,13 +303,14 @@ Changing indexing based on a given argument from `args` should be done through,
303
[`to_index`](@ref), or [`to_axis`](@ref).
304
"""
305
function getindex(A, args...)
306
- @boundscheck checkbounds(A, args...)
307
- unsafe_getindex(A, to_indices(A, args)...)
+ inds = to_indices(A, args)
+ @boundscheck checkbounds(A, inds...)
308
+ unsafe_getindex(A, inds...)
309
end
310
function getindex(A; kwargs...)
- args = order_named_inds(dimnames(A), values(kwargs))
311
312
+ inds = to_indices(A, order_named_inds(dimnames(A), values(kwargs)))
313
314
315
@propagate_inbounds getindex(x::Tuple, i::Int) = getfield(x, i)
316
@propagate_inbounds getindex(x::Tuple, ::StaticInt{i}) where {i} = getfield(x, i)
0 commit comments