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

Improve LinearOperator adjoint tests #72

Merged
merged 9 commits into from
Nov 1, 2021
Merged

Conversation

bwohlberg
Copy link
Collaborator

Improve LinearOperator adjoint tests. Resolves #66.

@bwohlberg bwohlberg added enhancement New feature or request tests Pertaining to SCICO tests labels Oct 30, 2021
num = snp.sum(y.conj() * AAty)
den = snp.linalg.norm(Aty) ** 2
np.testing.assert_allclose(num / den, 1, rtol=rtol)
assert linop.valid_adjoint(A, A.H, rtol, key)
Copy link
Contributor

Choose a reason for hiding this comment

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

I checked that there are other tests for the equivalence of A.conj().T, A.H, and A.adj and there are, so I think this is fine (and lots cleaner)

@bwohlberg bwohlberg merged commit 656f59d into main Nov 1, 2021
@bwohlberg bwohlberg deleted the brendt/adjoint-test branch November 1, 2021 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request tests Pertaining to SCICO tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LinearOperator adjoint tests could be improved
2 participants