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 6c8cd0e commit d1b4098Copy full SHA for d1b4098
src/indexing.jl
@@ -8,6 +8,7 @@ using Base: ViewIndex
8
# Simple scalar indexing where we just set or return scalars
9
@inline Base.getindex(A::AxisArray, idxs::Int...) = A.data[idxs...]
10
@inline Base.setindex!(A::AxisArray, v, idxs::Int...) = (A.data[idxs...] = v)
11
+@inline Base.endof(A::Axis) = length(A)
12
13
# Cartesian iteration
14
Base.eachindex(A::AxisArray) = eachindex(A.data)
0 commit comments