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

Don't use std::conj if its argument could be real #115

Closed
mhoemmen opened this issue Oct 18, 2021 · 3 comments
Closed

Don't use std::conj if its argument could be real #115

mhoemmen opened this issue Oct 18, 2021 · 3 comments

Comments

@mhoemmen
Copy link
Contributor

This is a follow-on to PR #87.

@lums658
Copy link

lums658 commented Oct 18, 2021 via email

@mhoemmen
Copy link
Contributor Author

@lums658 wrote:

What was the decision on this — metaprogram to dispatch to identity (no-op) if real?

It's not really a "decision" -- P1673 already requires that hermitian_* etc. work for noncomplex element types, so we just need to write some overloaded conj_if_complex thing that is the identity for everything other than std::complex.

@mhoemmen
Copy link
Contributor Author

This issue is subsumed by ORNL/cpp-proposals-pub#236. Thanks all!

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

No branches or pull requests

2 participants