For the last couple of days I've been trying to figure out how to get
Sage to generate a list of partitions of a list. For example, the list
[1,1,2] would return [ [[1],[1,2]] , [[1,1],[2]] , [[1,1,2]] ] or
something along those lines. SetPartitions looked like it would have
been a nice choice, but it discards duplicate values of the same
number; the ordinary Partitions function looks like it used to do
that, but there seems to be a disconnect between the documentation and
the current behavior of the module. Does SAGE support this kind of
activity, and if so, how would I go about doing it?

If it's in the documentation, I'd be happy to read that. RTFMing
hasn't gotten me very far at the moment, but that may be because I
can't find the right part of the M to R.


Thanks,
-Erik

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to