[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Axes tip in AbstractArray interface #47221

Merged
merged 2 commits into from
Jan 26, 2023
Merged

Conversation

jishnub
Copy link
Contributor
@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 domain:docs This change adds or pertains to documentation domain:arrays [a, r, r, a, y, s] labels Oct 19, 2022
@ViralBShah
Copy link
Member

Bump. Would be nice to get this merged.

@jishnub
Copy link
Contributor Author
jishnub commented Jan 16, 2023

Is there anything that remains to be done in this?

@jishnub
Copy link
Contributor 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
domain:arrays [a, r, r, a, y, s] domain:docs This change adds or pertains to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants