-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Ensure elision of require_one_based_indexing
with high-dim array views
#53091
Conversation
clean up has_offset_axes dispatch
This fixed one case but broke others. Tweaks are needed still |
The first fix was not the correct one. With the last commit we simplify the lispy recursion of CC: @N5N3 |
LGTM, I guess the doc string could be updated? ( |
Done, thanks! |
Co-authored-by: Denis Barucic <[email protected]>
…ews (#53091) Closes #49332 --------- Co-authored-by: Denis Barucic <[email protected]> (cherry picked from commit 9edf1dd)
A few stragglers. Backported PRs: - [x] #53091 <!-- Ensure elision of `require_one_based_indexing` with high-dim array views --> - [x] #53117 <!-- Try to fix incorrect documentation of `nthreads` --> - [x] #52855 <!-- Fix variable name in scaling an `AbstractTriangular` with zero alpha --> - [x] #52952 <!-- [REPLCompletions] enable completions for `using Module.Inner|` --> - [x] #53101 <!-- Inplace transpose for unit Triangular may skip diagonal --> Need manual backport: - [ ] #52505 <!-- fix alignment of emit_unbox_store copy --> Non-merged PRs with backport label: - [ ] #53125 <!-- coverage: count coverage where explicitly requested by inference only --> - [ ] #52694 <!-- Reinstate similar for AbstractQ for backward compatibility --> - [ ] #51479 <!-- prevent code loading from lookin in the versioned environment when building Julia -->
…ews (JuliaLang#53091) Closes #49332 --------- Co-authored-by: Denis Barucic <[email protected]> (cherry picked from commit 9edf1dd)
Closes JuliaLang/LinearAlgebra.jl#998
Here I try to make the life of the compiler a bit easier by reorganising the dispatch structure of
has_offset_axes
(#45260) into two layers. Avoiding the self-reference of thehas_offset_axes(As...)
method seems to allow the elision of the call in my machine, which fixes JuliaLang/LinearAlgebra.jl#998 by fully eliminatingrequire_one_based_indexing
even for the problematic case of views of 4+ dimensional arrays.