JuliaArrays / JuliaArrays/TiledIteration.jl
support CartesianIndices as axes for TileIterator
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 85
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
Currently, the axes argument only accepts tuple of ranges, and eltype of TileIteration is a tuple of ranges.
A = rand(200, 50);
R = TileIterator(axes(A), (128,8))
A[R[1]...]
It can be convenient to accept CartesianIndices here and make the eltype be CartesianIndices so that following usage is possible:
R = TileIterator(CartesianIndices(A), (128,8))
A[R[1]]
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 TileIterator and TileIteration definitions and tracing how tuple-of-range axes are stored and returned. Check the existing iterator behavior with the examples in the issue, then verify that CartesianIndices(A) is accepted and that indexed access through A[R[1]] works as shown.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- performance
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100