-
Notifications
You must be signed in to change notification settings - Fork 284
Annotate arithmetic operations #1231
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
jonathanberthias
wants to merge
36
commits into
scipopt:master
Choose a base branch
from
jonathanberthias:type-expr-ops
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.
+1,939
−4,090
Open
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
aecf12e
Improve baseline script
jonathanberthias cde7a12
Type var+1
jonathanberthias 86bf99b
type var+constant
jonathanberthias d15fb5d
type var*constant
jonathanberthias 70beeed
type prod_expr**2
jonathanberthias 296f1e7
type abs(var)
jonathanberthias 8ce164f
type var<=3
jonathanberthias 7430116
type +var
jonathanberthias 1559bb1
type -var
jonathanberthias 53c0f98
type +mvar
jonathanberthias dc8b38a
type exp/log/sqrt/sin/cos
jonathanberthias a4688cd
type exp/log/sqrt/sin/cos as methods
jonathanberthias d8ad645
type comparison operators better
jonathanberthias a10b3e8
type binary operators better on Expr
jonathanberthias 0144199
remove noise from GenExpr
jonathanberthias 5376f57
remove noise from UnaryExpr
jonathanberthias 611f320
Fix mypy errors
jonathanberthias 0cf78d6
type MatrixExpr basic operations
jonathanberthias 66d0a20
type abs(matrixexpr)
jonathanberthias 68a3fde
type expr**int|float
jonathanberthias 6661a85
type expr==float
jonathanberthias 1934e05
type operations between expr and ndarray
jonathanberthias c57138e
type operations for matrixexpr
jonathanberthias 9a144eb
type matrixexpr @
jonathanberthias 330dc99
type matrixexpr ** float
jonathanberthias 54be2af
type matrixexpr ** ndarray
jonathanberthias 04aaf1c
type genexpr operations
jonathanberthias c1bdeb0
type constant**x
jonathanberthias bdaf349
Remove problematic rops for Expr
jonathanberthias 3022baa
type genexpr**constant
jonathanberthias 320818b
type comparisons for (Matrix)ExprCons
jonathanberthias c43b014
type most reverse binops
jonathanberthias 908ac9c
Fix stubtest checks
jonathanberthias 0396eb4
Remove Expr.__iadd__ stub
jonathanberthias a2ec9e9
Unpin ruff
jonathanberthias 9a8f3eb
Review comments
jonathanberthias 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,9 @@ | ||
| .*.__reduce_cython__ | ||
| .*.__setstate_cython__ | ||
| pyscipopt.scip.__test__ | ||
| # These exist at runtime but aren't useful in the stubs, they are added to the child classes | ||
| pyscipopt.scip.ExprLike.__radd__ | ||
| pyscipopt.scip.ExprLike.__rmul__ | ||
| pyscipopt.scip.ExprLike.__rsub__ | ||
| pyscipopt.scip.ExprLike.__rtruediv__ | ||
| pyscipopt.scip.ExprLike.__sub__ |
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.
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.
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.
I removed the pin because this version was causing a weird formatting that was fixed in recent versions, but feel free to pin to a higher version if you want to keep a pinned version @Joao-Dionisio