JuliaArrays / JuliaArrays/OffsetArrays.jl
forward `fill!` for views of OffsetArrays?
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 212
- Forks
- 45
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the existing fill! methods for OffsetArray views and Julia's SubArray fallback, especially how the parent view is handled. Reproduce the CuArray-backed case described in the issue, then add coverage showing that filling the view avoids scalar indexing while preserving the requested values.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100