JuliaArrays / JuliaArrays/TiledIteration.jl

support CartesianIndices as axes for TileIterator

Open
#26 2 comments 2 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.