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

Replace (.+)(vars...) with sum([vars...]) #257

Closed
lukem12345 opened this issue Jul 17, 2024 · 0 comments · Fixed by #259
Closed

Replace (.+)(vars...) with sum([vars...]) #257

lukem12345 opened this issue Jul 17, 2024 · 0 comments · Fixed by #259

Comments

@lukem12345
Copy link
Member

Currently, for summations, we compile expressions like D == A + B + C down to D = (.+)(A, B, C).

However, this becomes unreasonably slow for expressions that take the elementwise sum of more that ~34 variables.

So, we should replace such generated code with calls to sum instead.

@lukem12345 lukem12345 changed the title Replace (.+)(vars...) with `sum([vars...]) Replace (.+)(vars...) with sum([vars...]) Jul 17, 2024
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

Successfully merging a pull request may close this issue.

1 participant