-
-
Notifications
You must be signed in to change notification settings - Fork 526
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
enhanced sets and cartesian products #18290
Comments
This comment has been minimized.
This comment has been minimized.
Branch: u/vdelecroix/18290 |
Commit: |
New commits:
|
Changed keywords from none to cartesian_product |
This comment has been minimized.
This comment has been minimized.
comment:3
HMmmmmmmm I don't know enough about this code to be helpful, but computing the cardinality of those sets seems to be too much. Isn't there a 'is_empty' functio in those classes that you could use instead? And you probably should call |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:5
Okayokay, it seems that there is no |
comment:6
Replying to @nathanncohen:
I would love to have an |
comment:7
I'd say that it would be good, but I do not think that I should be patching category codes given my next-to-zero understanding of how it works. |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
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:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:35
Replying to @nathanncohen:
;-) I agree with Nathann that it is perhaps not the best default. Though, let us keep it independent of this ticket. My motivation for the rationale was to avoid loops like
(which is exactly the problem with projective scheme). On the other hand, there is sometimes nothing else to do than going through the list of elements to get the cardinality. And you know it: Vincent |
comment:36
The same goes for Nathann |
comment:37
Replying to @nathanncohen:
This is exactly what I did:
|
comment:38
In your earlier comment you explicitly said that you had removed the methods. |
comment:39
Isn't a semigroup a magma too ? |
comment:40
Replying to @nathanncohen:
I removed it at the level of |
comment:41
Replying to @nathanncohen:
It is!
Did you found something strange? |
comment:42
I thought for a second that you had defined |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:44
I have been through Vincent's last commit. I pushed too minor fixes. I have only a couple points I am wondering about:
In any cases, I'll be busy all day and don't have a strong opinion on either of the above points. So please make the choice you feel right. And then I consider this as good to go. Thanks Vincent for all the work! |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:46
Replying to @nthiery:
I think this is fine. I would find it strange to import it in
Here you are not building the list from the pairs
done.
It is much faster for containment test and it is currently the only way it is used in
I am running the long tests and will set positive review if everything is fine. Vincent |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
Reviewer: Nicolas Thiéry |
Changed branch from public/18290 to |
Changed reviewer from Nicolas Thiéry to Nicolas M. Thiéry |
Changed commit from |
We implement several missing features of sets, enumerated sets and their cartesian products.
We add methods
is_empty
andis_finite
to all sets.We implement most of the methods for cartesian products of sets and enumerated sets (cardinality, rank/unrank, iteration).
For example, all commands below were hanging
CC: @nathanncohen @nthiery
Component: categories
Keywords: cartesian_product
Author: Vincent Delecroix
Branch:
707bf1e
Reviewer: Nicolas M. Thiéry
Issue created by migration from https://trac.sagemath.org/ticket/18290
The text was updated successfully, but these errors were encountered: