-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Description
I've been working on adding a TiledIndex with a IndexTiled <: IndexStyle, for all sorts of arrays that are best indexed into via an index representing the tile and an index within that tile. See issue in TiledIteration.jl. Along the way I had a few thoughts:
- Should reduce operations and possibly a number of others dispatch on
IndexStyle, thus allowing users to implement new index types along with efficient algorithms for those index types. - Same thought goes for
Base.to_indexandBase.to_indices. Should these dispatch on theIndexStyle, so that indices are converted to the correct type, based on theIndexStyle. This would allow any user defined index to work with any array type as long as the relevantto_indexandto_indicesfunctions are implemented! - Should we add a section in the manual on implementing new index types. It could extend the section on Arrays with custom indices
May be I've misunderstood the point of IndexStyle. If that's the case, can anyone point me to some resources on implementing custom indexing? The docs only have a section for adding offset indexing, but not for more complicated indexing.
Metadata
Metadata
Assignees
Labels
No labels