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 a bug in the derived adjoint #304

Merged
merged 3 commits into from
Dec 11, 2023

Conversation

JakobAsslaender
Copy link
Contributor

Fixes Issue #302

Copy link

codecov bot commented Dec 8, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (8a4bba3) 96.57% compared to head (9b645e2) 96.57%.
Report is 2 commits behind head on main.

❗ Current head 9b645e2 differs from pull request most recent head fc748ef. Consider uploading reports for the commit fc748ef to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #304   +/-   ##
=======================================
  Coverage   96.57%   96.57%           
=======================================
  Files          15       15           
  Lines        1051     1052    +1     
=======================================
+ Hits         1015     1016    +1     
  Misses         36       36           

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

Copy link
Contributor

github-actions bot commented Dec 8, 2023

Package name latest stable
CaNNOLeS.jl
DCISolver.jl
FletcherPenaltySolver.jl
JSOSolvers.jl
Krylov.jl
NLPModels.jl
NLPModelsModifiers.jl
PROPACK.jl
Percival.jl
QuadraticModels.jl
SolverTools.jl

Copy link
Member

@geoffroyleconte geoffroyleconte left a comment

Choose a reason for hiding this comment

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

Thank you! @dpo you can merge if this looks good to you.

Copy link
Member

@dpo dpo left a comment

Choose a reason for hiding this comment

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

Thank you! Just a few minor comments.

A = rand(5, 3) + im * rand(5, 3)

opA = LinearOperator{eltype(A)}(size(A,1), size(A,2), false, false,
(y,x) -> (mul!(y,A,x)),
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
(y,x) -> (mul!(y,A,x)),
(y,x) -> mul!(y,A,x),


opA = LinearOperator{eltype(A)}(size(A,1), size(A,2), false, false,
(y,x) -> (mul!(y,A,x)),
(x,y) -> (mul!(x,transpose(A),y)),
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
(x,y) -> (mul!(x,transpose(A),y)),
(x,y) -> mul!(x,transpose(A),y),

A = rand(5, 3) + im * rand(5, 3)

opA = LinearOperator{eltype(A)}(size(A,1), size(A,2), false, false,
(y,x) -> (mul!(y,A,x)),
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
(y,x) -> (mul!(y,A,x)),
(y,x) -> mul!(y,A,x),

opA = LinearOperator{eltype(A)}(size(A,1), size(A,2), false, false,
(y,x) -> (mul!(y,A,x)),
nothing,
(x,y) -> (mul!(x,adjoint(A),y)))
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
(x,y) -> (mul!(x,adjoint(A),y)))
(x,y) -> mul!(x,adjoint(A),y))

@JakobAsslaender
Copy link
Contributor Author

@dpo: I incorporated the changes you have suggested. Thanks for the review!

Copy link
Member

@dpo dpo left a comment

Choose a reason for hiding this comment

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

Thank you!

@dpo dpo merged commit e5657d2 into JuliaSmoothOptimizers:main Dec 11, 2023
33 of 34 checks passed
@JakobAsslaender JakobAsslaender deleted the AdjBugFix branch December 11, 2023 19:26
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.

None yet

3 participants