Skip to content

Implement reverse for more Matrix variants #54231

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

Merged
merged 64 commits into from
May 22, 2024
Merged

Conversation

Sahiti004
Copy link
Contributor

@Sahiti004 Sahiti004 commented Apr 24, 2024

This pull request resolves JuliaLang/LinearAlgebra.jl#990: Now reverse works for Diagonal, Bidiagonal, Tridiagonal, SymTridiagonal, Symmetric, Hermitian, Uppertriangular, LowerTriangular and UpperHessenberg matrices.

@Sahiti004 Sahiti004 changed the title This pull request addresses issue #53237, now reverse works for Diagonal, Bidiagonal, Tridiagonal, SymTridiagonal, Symmetric, Hermitian, Uppertriangular, LowerTriangular and UpperHessenberg This pull request resolves issue #53237, now reverse works for Diagonal, Bidiagonal, Tridiagonal, SymTridiagonal, Symmetric, Hermitian, Uppertriangular, LowerTriangular and UpperHessenberg Apr 24, 2024
@Sahiti004 Sahiti004 changed the title This pull request resolves issue #53237, now reverse works for Diagonal, Bidiagonal, Tridiagonal, SymTridiagonal, Symmetric, Hermitian, Uppertriangular, LowerTriangular and UpperHessenberg This pull request resolves #53237, now reverse works for Diagonal, Bidiagonal, Tridiagonal, SymTridiagonal, Symmetric, Hermitian, Uppertriangular, LowerTriangular and UpperHessenberg Apr 24, 2024
@tecosaur tecosaur added the linear algebra Linear algebra label Apr 24, 2024
@tecosaur
Copy link
Member

Thanks for making this PR @Sahiti004! It's great to see such a quick turnaround from your involvement in JuliaLang/LinearAlgebra.jl#990.

I'll just tidy up the PR title/description a bit to make it fit a little better with the usual "subject line + description" format 🙂

@Sahiti004 Sahiti004 closed this Apr 24, 2024
@tecosaur tecosaur changed the title This pull request resolves #53237, now reverse works for Diagonal, Bidiagonal, Tridiagonal, SymTridiagonal, Symmetric, Hermitian, Uppertriangular, LowerTriangular and UpperHessenberg Implement reverse for more Matrix variants Apr 24, 2024
@Sahiti004 Sahiti004 reopened this Apr 24, 2024
Copy link
Member

@LilithHafner LilithHafner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!

@stevengj
Copy link
Member

Your tests should also check the in-place case, e.g. test:

@test reverse!(copy(A)) = reverse(A) == reverse!(Matrix(A))

Sahiti004 and others added 10 commits May 3, 2024 15:55
Co-authored-by: Steven G. Johnson <stevenj@mit.edu>
Co-authored-by: Steven G. Johnson <stevenj@mit.edu>
Co-authored-by: Steven G. Johnson <stevenj@mit.edu>
Co-authored-by: Steven G. Johnson <stevenj@mit.edu>
Co-authored-by: Steven G. Johnson <stevenj@mit.edu>
Co-authored-by: Steven G. Johnson <stevenj@mit.edu>
Co-authored-by: Steven G. Johnson <stevenj@mit.edu>
Co-authored-by: Steven G. Johnson <stevenj@mit.edu>
Co-authored-by: Steven G. Johnson <stevenj@mit.edu>
@dkarrasch dkarrasch added merge me PR is reviewed. Merge when all tests are passing and removed merge me PR is reviewed. Merge when all tests are passing labels May 20, 2024
@dkarrasch dkarrasch added the merge me PR is reviewed. Merge when all tests are passing label May 21, 2024
@fatteneder fatteneder merged commit e51f77a into JuliaLang:master May 22, 2024
@fatteneder fatteneder removed the merge me PR is reviewed. Merge when all tests are passing label May 22, 2024
lazarusA pushed a commit to lazarusA/julia that referenced this pull request Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linear algebra Linear algebra
Projects
None yet
Development

Successfully merging this pull request may close these issues.

reverse(A, dims=...) doesn't work for Diagonal, Tridiagonal, etcetera
6 participants