@@ -34,13 +34,13 @@ const AbstractFillVecOrMat{T} = Union{AbstractFillVector{T},AbstractFillMatrix{T
34
34
35
35
== (a:: AbstractFill , b:: AbstractFill ) = axes (a) == axes (b) && getindex_value (a) == getindex_value (b)
36
36
37
- Base . @propagate_inbounds @inline function _fill_getindex (F:: AbstractFill , kj:: Integer... )
37
+ @inline function _fill_getindex (F:: AbstractFill , kj:: Integer... )
38
38
@boundscheck checkbounds (F, kj... )
39
39
getindex_value (F)
40
40
end
41
41
42
- getindex (F:: AbstractFill , k:: Integer ) = _fill_getindex (F, k)
43
- getindex (F:: AbstractFill{T, N} , kj:: Vararg{Integer, N} ) where {T, N} = _fill_getindex (F, kj... )
42
+ Base . @propagate_inbounds getindex (F:: AbstractFill , k:: Integer ) = _fill_getindex (F, k)
43
+ Base . @propagate_inbounds getindex (F:: AbstractFill{T, N} , kj:: Vararg{Integer, N} ) where {T, N} = _fill_getindex (F, kj... )
44
44
45
45
@inline function setindex! (F:: AbstractFill , v, k:: Integer )
46
46
@boundscheck checkbounds (F, k)
@@ -195,8 +195,8 @@ Base.@propagate_inbounds @inline Base._unsafe_getindex(::IndexStyle, F::Abstract
195
195
196
196
197
197
198
- getindex (A:: AbstractFill , kr:: AbstractVector{Bool} ) = _fill_getindex (A, kr)
199
- getindex (A:: AbstractFill , kr:: AbstractArray{Bool} ) = _fill_getindex (A, kr)
198
+ Base . @propagate_inbounds getindex (A:: AbstractFill , kr:: AbstractVector{Bool} ) = _fill_getindex (A, kr)
199
+ Base . @propagate_inbounds getindex (A:: AbstractFill , kr:: AbstractArray{Bool} ) = _fill_getindex (A, kr)
200
200
201
201
@inline Base. iterate (F:: AbstractFill ) = length (F) == 0 ? nothing : (v = getindex_value (F); (v, (v, 1 )))
202
202
@inline function Base. iterate (F:: AbstractFill , (v, n))
0 commit comments