-
Notifications
You must be signed in to change notification settings - Fork 3
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
tuning scalar multiplication #56
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #56 +/- ##
==========================================
+ Coverage 86.23% 86.26% +0.02%
==========================================
Files 14 14
Lines 741 757 +16
==========================================
+ Hits 639 653 +14
- Misses 102 104 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
It's maybe cleaner to do something like """
lmul(a, X)
Multiplies the coefficients of `X` by `a`.
"""
function lmul end
function lmul(a, X::AlgebraElement)
return MA.operate_to(similar(X), lmul, a, X)
end
Base.:*(a, X::AlgebraEleemnt) = lmul(a, X) where |
I'm not sure it changes much, I don't intend these functions to be used by anyone outside ;) |
It serves precisely the opposite role, where the coefficients stay the same and we shift keys ;) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is some added allocation on nightly but it might be due to a change in Julia since yesterday
Since you approved, fixing nightly is on you from now on :D |
@blegat