Updates:
Status: Fixed
Comment #7 on issue 2485 by [email protected]: multiset_partitions
http://code.google.com/p/sympy/issues/detail?id=2485
The multiset_partitions no longer returns empty lists or duplicates and is
truly multiset-savvy:
list(multiset_partitions([2,2,2,2], 2))
[[[2], [2, 2, 2]], [[2, 2], [2, 2]]]
list(multiset_partitions([1,2,2],2))
[[[1, 2], [2]], [[1], [2, 2]]]
Although I think that it should just be renamed partitions (and current
partitions named integer_partitions) I'll leave that to anyone else that
thinks it's important. If someone does, I would be willing to make the
change and submit a PR, but otherwise won't initiate this.
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
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/sympy-issues?hl=en.