Skip to content

support CartesianIndices as axes for TileIterator #26

@johnnychen94

Description

@johnnychen94

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]]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions