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

Fix IndexStyle #25

Merged
merged 2 commits into from
Mar 22, 2025
Merged

Fix IndexStyle #25

merged 2 commits into from
Mar 22, 2025

Conversation

Octogonapus
Copy link
Contributor

@Octogonapus Octogonapus commented Mar 21, 2025

This PR fixes the definition of IndexStyle which must dispatch on the array type, not the array value.
We keep the convenience function which uses the array value.

Before this PR, in practice, unsafe arrays used IndexCartesian instead of IndexLinear because that is the default (there was no method defined on the type of an unsafe array). This prevented certain optimizations.

Copy link

codecov bot commented Mar 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.82%. Comparing base (eff1463) to head (abc143b).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #25      +/-   ##
==========================================
+ Coverage   97.81%   97.82%   +0.01%     
==========================================
  Files           3        3              
  Lines         137      138       +1     
==========================================
+ Hits          134      135       +1     
  Misses          3        3              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@oschulz
Copy link
Collaborator

oschulz commented Mar 22, 2025

Thanks @Octogonapus

@oschulz oschulz merged commit e4f2b66 into JuliaArrays:main Mar 22, 2025
8 checks passed
@oschulz
Copy link
Collaborator

oschulz commented Mar 22, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants