Skip to content

Axes tip in AbstractArray interface#47221

Merged
ViralBShah merged 2 commits intoJuliaLang:masterfrom
jishnub:patch-6
Jan 26, 2023
Merged

Axes tip in AbstractArray interface#47221
ViralBShah merged 2 commits intoJuliaLang:masterfrom
jishnub:patch-6

Conversation

@jishnub
Copy link
Copy Markdown
Member

@jishnub jishnub commented Oct 19, 2022

Update the AbstractArray interface to mention that the axes of an array should, in general, be their own axes. This is required for internal consistency, and if this is not enforced (e.g. by choosing UnitRanges as axes instead of Base.IdentityUnitRanges), one may come across unexpected bugs (see https://juliaarrays.github.io/OffsetArrays.jl/stable/internals/#Wrapping-other-offset-array-types for an example).

Update the `AbstractArray` interface to mention that the axes of an array should, in general, be their own axes. This is required for internal consistency, and if this is not enforced (e.g. by choosing `UnitRange`s as axes instead of `Base.IdentityUnitRange`s), one may come across unexpected bugs (see https://juliaarrays.github.io/OffsetArrays.jl/stable/internals/#Wrapping-other-offset-array-types for an example).
@dkarrasch dkarrasch added docs This change adds or pertains to documentation arrays [a, r, r, a, y, s] labels Oct 19, 2022
@ViralBShah
Copy link
Copy Markdown
Member

Bump. Would be nice to get this merged.

@jishnub
Copy link
Copy Markdown
Member Author

jishnub commented Jan 16, 2023

Is there anything that remains to be done in this?

@jishnub
Copy link
Copy Markdown
Member Author

jishnub commented Jan 26, 2023

Gentle bump

@ViralBShah ViralBShah merged commit b6db2fd into JuliaLang:master Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arrays [a, r, r, a, y, s] docs This change adds or pertains to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants