-
-
Notifications
You must be signed in to change notification settings - Fork 679
Closed
Milestone
Description
The features of sage.combinat.cartesian_product.CartesianProduct are now completely integrated into the category framework (see #18290). We remove all occurrences of CartesianProduct to either cartesian_product or itertools.product. We deprecate the CartesianProduct from sage.combinat.cartesian_product.
In order to support all features of the old class we also:
- move the
__iter__fromEnumeratedSets.CartesianProducts.ParentMethodstoSets.CartesianProducts.ParentMethods - allows
cartesian_productto be called withlist,tuple,set,frozenset - make
cartesian_product([])works - introduce a function
some_tuplesinsage.misc.miscthat is intensively used in the testing framework (and incidentally speed up some doc test) - refine the category of
Set([1,2,3])to be finite - implement a (very naive)
random_elementforSet([1,2,3]) - implement a (naive) hash for
EnumeratedSetFromIterator
see also : #15425, #19195
one that can be closed as duplicate: #14224, #19192
Depends on #17411
Component: combinatorics
Author: Vincent Delecroix
Branch/Commit: 6e27dde
Reviewer: Nicolas M. Thiéry
Issue created by migration from https://trac.sagemath.org/ticket/18411