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
Add edges() and endpoints() method to intervals #19364
Comments
This comment has been minimized.
This comment has been minimized.
Commit: |
New commits:
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:7
Strange order:
what is the reason of this choice ? |
comment:8
Replying to @fchapoton:
The rationale is the following: suppose you need 2 endpoints defining the interval (i.e. such that the union is the whole interval). In that case, those endpoints are For the |
comment:9
Are both methods really needed? |
comment:10
"needed" is always very subjective. I mean, is Sage (the program as a whole) "needed"? The main motivation is to allow more easily code which can run unchanged for both |
comment:11
Replying to @jdemeyer:
I understand that you need an implementation in both |
comment:12
Replying to @videlec:
It's not really obvious to me how can one easily construct But even then, there is very little harm in having redundant methods. For |
comment:13
Replying to @jdemeyer:
All right. Let it go. |
Reviewer: Vincent Delecroix |
Changed branch from u/jdemeyer/add_edges___method_to_rif_and_cif_elements to |
Add an
edges()
method to intervals (elements ofRIF
andCIF
).For
CIF
, we also add anendpoints()
method returning the 4 corners of the interval.In other words, if the given interval lives in some N-dimensional space, then:
edges()
returns the (N-1)-dimensional faces as intervals.endpoints()
returns the 0-dimensional faces as points.Component: basic arithmetic
Author: Jeroen Demeyer
Branch/Commit:
388d495
Reviewer: Vincent Delecroix
Issue created by migration from https://trac.sagemath.org/ticket/19364
The text was updated successfully, but these errors were encountered: