-
Notifications
You must be signed in to change notification settings - Fork 280
Speed up -SumExpr, -ProdExpr and -Constant
#1179
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
Open
Zeroto521
wants to merge
27
commits into
scipopt:master
Choose a base branch
from
Zeroto521:expr/__neg__
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 19 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
28d3adc
Optimize Expr negation with Cython dict iteration
Zeroto521 1be74c8
Add copy method and negation to GenExpr and ProdExpr
Zeroto521 e4351fa
Add return type annotations to __neg__ methods
Zeroto521 fb9fcc8
Optimize SumExpr coefficients with cpython.array
Zeroto521 f55c222
Add tests for negation of expression objects
Zeroto521 cb349ce
Merge remote-tracking branch 'upstream/master' into expr/__neg__
Zeroto521 5896012
Update changelog with negation speed improvements
Zeroto521 6387cfa
Remove @disjoint_base decorator from UnaryExpr
Zeroto521 eac8db9
Merge branch 'master' into expr/__neg__
Zeroto521 fecba06
Optimize coefs access in SumExpr evaluation
Zeroto521 02e32b5
Fix negation logic in SumExpr class
Zeroto521 bd280f6
Add negation support to Constant expressions
Zeroto521 2e97cc7
Add test for negation of Constant expression
Zeroto521 67ce45d
Expand test_neg to cover negation of power expressions
Zeroto521 40945ad
Update CHANGELOG for negation speedup details
Zeroto521 ef034c4
Refactor SumExpr to use Python lists for coefficients
Zeroto521 86678e2
Remove `GenExpr.copy`
Zeroto521 394c682
Add @disjoint_base decorator to UnaryExpr class
Zeroto521 d348d48
Merge branch 'master' into expr/__neg__
Zeroto521 b881b12
Merge remote-tracking branch 'upstream/master' into expr/__neg__
Zeroto521 39c036c
Apply suggestions from code review
Zeroto521 3d2bff0
Merge remote-tracking branch 'upstream/master' into expr/__neg__
Zeroto521 1c6598f
Simplify Expr.__neg__ implementation
Zeroto521 2b0cc32
Merge branch 'expr/__neg__' of https://github.com/Zeroto521/PySCIPOpt…
Zeroto521 70ef34e
Merge remote-tracking branch 'upstream/master' into expr/__neg__
Zeroto521 05dd131
Remove unused PyDict_SetItem cimport
Zeroto521 af2f83a
Import PyDict_GetItem in expr.pxi
Zeroto521 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.