-
-
Notifications
You must be signed in to change notification settings - Fork 482
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
fix MIPVariable
inheritance
#21353
Comments
Commit: |
New commits:
|
Branch: u/vdelecroix/21353 |
This comment has been minimized.
This comment has been minimized.
comment:4
+1 on getting rid of this kludge if we finally can! About the change I don't expect a need for pure speed for this parent, right? Of course the elements could still belong to |
comment:5
Replying to @nthiery:
Doing that change would remove some functionality from
I believe we have this parent (essentially) nailed in memory at startup because of |
comment:6
It does introduce complications: removing the inheritance from |
comment:7
Replying to @videlec:
Ah, shoot. That would be easy to fix by moving up those methods to As an intermediate step, one could keep for now the inheritance from As you feel like guys! |
comment:8
I am setting #20686 as a dependency since it is very likely to create merge failures. Replying to @nthiery:
If you do open a ticket for that, I would be happy to review.
Well be better to get rid of |
Dependencies: #20686 |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:10
rebased |
comment:11
Replying to @videlec:
...on an old version of Sage. Still needs rebase. |
This comment has been minimized.
This comment has been minimized.
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:14
rebased on rc1 |
Changed dependencies from #20686 to none |
comment:16
If this passes doctests, I have no objections. Nicolas? |
comment:17
Maybe two details: we should add a check like
(or at least check that And remove the "or None" from the documentation line
|
comment:42
I didn't see how that was possible because this moves two calls to |
comment:43
Replying to @tscrim:
OK, I thought that you only added imports in this patch, but you did indeed move an import. |
comment:44
Merge conflict. Note that you may want to wait until the next beta when #24096 is merged. |
This comment has been minimized.
This comment has been minimized.
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:47
Rebased |
This comment has been minimized.
This comment has been minimized.
MIPVariable
inheritance
Branch pushed to git repo; I updated commit sha1. New commits:
|
Reviewer: Vincent Delecroix |
comment:51
Added an extra doctest for checking about the base ring being taken into account. I am happy with the current version. |
comment:52
LGTM, thanks. |
Changed reviewer from Vincent Delecroix to Vincent Delecroix, Travis Scrimshaw |
Changed branch from public/categoires/some_cleanup-21353 to |
Let
MIPVariable
not inherit fromElement
butSageObject
. The only reason it used to be this way is to be able to multiply variables with scalars that can be dealt with in other ways. The previous inheritance scheme used the old parent framework that we try to get rid of.See also the task ticket: #21380
Depends on #24096
CC: @tscrim @nthiery @simon-king-jena @mkoeppe
Component: categories
Author: Vincent Delecroix, Travis Scrimshaw
Branch/Commit:
76c7fab
Reviewer: Vincent Delecroix, Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/21353
The text was updated successfully, but these errors were encountered: