-
-
Notifications
You must be signed in to change notification settings - Fork 480
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
improve cone containment tests #30605
Comments
comment:1
I was thinking what should be done with reals and other non-exact things, but I think it does not matter - as long as exact ones are handled correctly, it is user's responsibility to be aware that non-exact things may give wrong results without extra care. |
comment:2
The difficulty is never where you think it will be...
|
Branch: u/mjo/ticket/30605 |
Commit: |
Author: Michael Orlitzky |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Reviewer: Jonathan Kliem |
comment:6
Could you follow the recommendation of - if p is not None: return p
+ if p is not None:
+ return p or - try: return L.base_extend(ring)(data)
- except TypeError: pass
- except ValueError as ex:
- if str(ex).startswith("Cannot coerce"): pass
+ try:
+ return L.base_extend(ring)(data)
+ except TypeError:
+ pass
+ except ValueError as ex:
+ if str(ex).startswith("Cannot coerce"):
+ pass I think this make it easier to read. Once done, you can set in on positive review on my behalf. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:8
Thanks! I fixed the indentation in one final (separate) commit if you want to take a look. But pycodestyle is happy now. |
Changed branch from u/mjo/ticket/30605 to |
…30605. Thanks to some recent improvements in cone containment testing, we no longer have to reimplement it for vectors with irrational entries ourselves.
…30605. Thanks to some recent improvements in cone containment testing, we no longer have to reimplement it for vectors with irrational entries ourselves.
…30605. Thanks to some recent improvements in cone containment testing, we no longer have to reimplement it for vectors with irrational entries ourselves.
If
K
is a polyhedral cone, the testx in K
only supportsx
with rational coordinates. It is desirable in many cases to perform the same test with irrational numbers as well.This will simplify the implementation in ticket #29169.
CC: @kliem @jplab @novoselt
Component: geometry
Author: Michael Orlitzky
Branch/Commit:
7ea2dd8
Reviewer: Jonathan Kliem
Issue created by migration from https://trac.sagemath.org/ticket/30605
The text was updated successfully, but these errors were encountered: