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.
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 thesizesfield, which would be nicer to access throughBase.sizeandBase.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 customBase.showmethod might also be needed for displaying it to not error.