| 1 | Because I hate that : |
| 2 | |
| 3 | {{{ |
| 4 | sage: MultichooseNK(5,3) |
| 5 | Combinatorial Class -- REDEFINE ME! |
| 6 | |
| 7 | sage: Partitions(5, min_part=0) |
| 8 | /home/ncohen/.Sage/local/lib/python2.7/site-packages/sage/combinat/partition.py:3764: RuntimeWarning: Currently, setting min_part=0 produces Partition objects which violate internal assumptions. Calling methods on these objects may produce errors or WRONG results! |
| 9 | warn("Currently, setting min_part=0 produces Partition objects which violate internal assumptions. Calling methods on these objects may produce errors or WRONG results!", RuntimeWarning) |
| 10 | Partitions of the integer 5 satisfying constraints min_part=0 |
| 11 | |
| 12 | sage: Compositions(5, min_part=0) |
| 13 | /home/ncohen/.Sage/local/lib/python2.7/site-packages/sage/combinat/composition.py:975: RuntimeWarning: Currently, setting min_part=0 produces Composition objects which violate internal assumptions. Calling methods on these objects may produce errors or WRONG results! |
| 14 | warn("Currently, setting min_part=0 produces Composition objects which violate internal assumptions. Calling methods on these objects may produce errors or WRONG results!", RuntimeWarning) |
| 15 | Compositions of the integer 5 satisfying constraints min_part=0 |
| 16 | }}} |
| 17 | |
| 18 | From the help of unordered_tuples (in the global namespace): |
| 19 | |
| 20 | Warning: Wraps GAP - hence mset must be a list of objects that have string |
| 21 | representations that can be interpreted by the GAP interpreter. |
| 22 | If mset consists of at all complicated Sage objects, this |
| 23 | function does *not* do what you expect. A proper function should |
| 24 | be written! (TODO!) |
| 25 | |
| 26 | From the help of permutations_iterator (in the global namespace, with no depracation warning): |
| 27 | |
| 28 | Do not use this function. It will be deprecated in future version |
| 29 | of Sage and eventually removed. Use Permutations instead; |
| 30 | |
| 31 | help of number_of_permutations (same as above) : |