-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Faster dot product for symmetric matrices #647
Comments
It should be fine to add a specialized method for symmetric matrices even though it's a quite special case. Please open a PR. |
Might be significantly faster to linearly index into the |
The suggested solution is only much faster if both matrices using LinearAlgebra
using BenchmarkTools
n = 5000;
X = randn(n, n);
Y = randn(n, n);
A = Symmetric(X);
B = Symmetric(Y);
B = Symmetric(Y, :L);
A = Symmetric(X, :L);
So I guess this needs some work to make the specialized method significantly faster in the other cases as well. |
I want to get an inner product between two symmetric matrices, and
dot
seems to dispatch to a pretty slow method.E.g.
Any chance of getting a faster dot product in?
This is very specific, but related to #496 and #334.
The text was updated successfully, but these errors were encountered: