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

Reduce code duplication for dot product of symmetric/Hermitian matrices #33269

Conversation

goggle
Copy link
Contributor

@goggle goggle commented Sep 14, 2019

Specialized dot methods for symmetric and Hermitian matrices have been recently added in #32827. Since these two new methods share a lot of code, we could use meta-programming to reduce code duplication. That's what this PR does.

If this is not desired, feel free to close this PR.

@KristofferC
Copy link
Member

KristofferC commented Sep 15, 2019

The meta programming is avoidable by defining a few helper functions that dispatch on Symmetric or Hermitian in the same spirit as #33069

@andreasnoack andreasnoack added the linear algebra Linear algebra label Sep 16, 2019
@andreasnoack
Copy link
Member

I think this version is quite readable so I'll go ahead and merge.

@andreasnoack andreasnoack merged commit 2f426e4 into JuliaLang:master Sep 16, 2019
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.

3 participants