Skip to content

TileArray and the AbstractArray interface #66

@AntonOresten

Description

@AntonOresten

TileArray is currently not an AbstractArray, meaning many methods need to be explicitly defined (Base.eltype, Base.ndims), and in kernels the only way to access the global size is through the sizes field, which would be nicer to access through Base.size and Base.size(_, i).

TileArray isn't used like a normal array, but is there anything preventing us from subtyping AbstractArray and only defining Base.size? It doesn't fit neatly into the interface since I suppose we don't care about Julia-side element access, so a custom Base.show method might also be needed for displaying it to not error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions