Skip to content

Fix type of RFAdjointMat vector, and fix typo in RFMat.multHermitian#252

Open
JHopeCollins wants to merge 3 commits into
masterfrom
JHopeCollins/bugfix-tao-multhermitian
Open

Fix type of RFAdjointMat vector, and fix typo in RFMat.multHermitian#252
JHopeCollins wants to merge 3 commits into
masterfrom
JHopeCollins/bugfix-tao-multhermitian

Conversation

@JHopeCollins
Copy link
Copy Markdown
Contributor

@JHopeCollins JHopeCollins commented Mar 19, 2026

The key change is on line 358: the adjoint mat should act on the dual type to the functional.

The changes on lines 243-249 are just switching the names of x and y in multHermitian because I think it is easier to read that way: Ax=y for mult and A^{T}y = x for multHermitian.

@JHopeCollins JHopeCollins self-assigned this Mar 19, 2026
@JHopeCollins JHopeCollins added the bug Something isn't working label Mar 19, 2026
@JHopeCollins JHopeCollins requested a review from jrmaddison April 2, 2026 09:46
Copy link
Copy Markdown
Contributor

@jrmaddison jrmaddison left a comment

Choose a reason for hiding this comment

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

I'm not sure this is quite the right fix, it looks like some refactoring is needed.

Comment thread pyadjoint/optimization/tao_solver.py
Comment thread pyadjoint/optimization/tao_solver.py
Comment thread pyadjoint/optimization/tao_solver.py
@JHopeCollins JHopeCollins requested review from jrmaddison and removed request for jrmaddison April 8, 2026 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants