-
Notifications
You must be signed in to change notification settings - Fork 23
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
using MutableArithmetic makes DynamicPolynomials slower? #64
Comments
This is weird, MA should be much faster for this with less allocations. Does the issue persist if |
#65 solves one part of the performance issue but it's still slower. |
The issue is that |
@blegat thanks for investigating; interesting find: indeed function algebra_SOS(Q::AbstractMatrix{T}, mt::AbstractMatrix{<:Integer}) where T
# result = zeros(T, maximum(mt)) doesn't work
result = [zero(T) for _ in 1:maximum(mt)]
for i in 1:size(Q,2)
@views algebra_addmul!(result, Q[:,i], Q[:,i], mt)
end
end I get the following timings:
|
Setup: (
mt
is a multiplication table of an algebra)and timings (on contrived example):
@blegat, @tweisser
The text was updated successfully, but these errors were encountered: