JuliaArrays / OffsetArrays.jl

Fortran-like arrays with arbitrary, zero or negative starting indices.
Other
195 stars 40 forks source link

forward `fill!` for views of OffsetArrays? #321

Open simeonschaub opened 1 year ago

simeonschaub commented 1 year ago

Would it be possible to forward fill!(a::SubArray{T, N, <:OffsetArray}, x) to fill!(view(parent(parent(a)), ...), x)? I'm having issues because I want to fill a view of an OffsetArray backed by a CuArray, but currently this tries to use the fallback definition in Base which requires scalar indexing.