@@ -114,12 +114,12 @@ function Base.show(io::IO, B::Block{N,Int}) where N
114
114
end
115
115
116
116
# Some views may be computed eagerly without the SubArray wrapper
117
- Base . @propagate_inbounds Base . view (r:: AbstractRange , B:: Block{1} ) = r[to_indices (r, (B,))... ]
118
- Base . @propagate_inbounds function Base . view (C:: CartesianIndices{N} , b1:: Block{1} , B:: Block{1} ...) where {N}
117
+ @propagate_inbounds view (r:: AbstractRange , B:: Block{1} ) = r[to_indices (r, (B,))... ]
118
+ @propagate_inbounds function view (C:: CartesianIndices{N} , b1:: Block{1} , B:: Block{1} ...) where {N}
119
119
blk = Block ((b1, B... ))
120
120
view (C, to_indices (C, (blk,))... )
121
121
end
122
- Base . @propagate_inbounds function Base . view (C:: CartesianIndices{N} , B:: Block{N} ) where {N}
122
+ @propagate_inbounds function view (C:: CartesianIndices{N} , B:: Block{N} ) where {N}
123
123
view (C, to_indices (C, (B,))... )
124
124
end
125
125
@@ -310,7 +310,7 @@ _indices(B) = B
310
310
show (io:: IO , r:: BlockSlice ) = print (io, " BlockSlice(" , r. block, " ," , r. indices, " )" )
311
311
312
312
# Avoid creating a SubArray wrapper in certain non-allocating cases
313
- Base . @propagate_inbounds Base . view (C:: CartesianIndices{N} , bs:: Vararg{BlockSlice,N} ) where {N} = view (C, map (x-> x. indices, bs)... )
313
+ @propagate_inbounds view (C:: CartesianIndices{N} , bs:: Vararg{BlockSlice,N} ) where {N} = view (C, map (x-> x. indices, bs)... )
314
314
315
315
Block (bs:: BlockSlice{<:BlockIndexRange} ) = Block (bs. block)
316
316
0 commit comments