[SciPy-user] Finding all combinations of numbers

Roger Herikstad roger.herikstad at gmail.com
Sat Jan 12 19:46:22 EST 2008


Hi all, I was wondering if there is a functions in scipy for generating all
possible combinations of a set of numbers? E.g [1,2,3] ->
[[1,2],[1,3],[2,3],[1,2,3]]. Basically I'm looking for a function that can
generate all unique pairs, triplets, quadruples, etc, etc. Any thoughts?

~ Roger
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20080113/ee41a082/attachment.html>


More information about the SciPy-User mailing list