Re: numpy permutations with replacement

2009-04-13 Thread skorpi...@gmail.com
On Apr 13, 1:17 pm, Mensanator wrote: > On Apr 13, 6:36 am, "skorpi...@gmail.com" wrote: > > > > > On Apr 13, 7:13 am, Chris Rebert wrote: > > > > On Mon, Apr 13, 2009 at 4:05 AM, skorpi...@gmail.com > > > > wrote: > > > > I am trying to generate all possible permutations of length three from >

Re: numpy permutations with replacement

2009-04-13 Thread Mensanator
On Apr 13, 6:36 am, "skorpi...@gmail.com" wrote: > On Apr 13, 7:13 am, Chris Rebert wrote: > > > > > > > On Mon, Apr 13, 2009 at 4:05 AM, skorpi...@gmail.com > > > wrote: > > > I am trying to generate all possible permutations of length three from > > > elements of [0,1]. i.e in this scenario th

Re: numpy permutations with replacement

2009-04-13 Thread skorpi...@gmail.com
On Apr 13, 7:13 am, Chris Rebert wrote: > On Mon, Apr 13, 2009 at 4:05 AM, skorpi...@gmail.com > > wrote: > > I am trying to generate all possible permutations of length three from > > elements of [0,1]. i.e in this scenario there are a total of 8 > > distinct permutations: > > > [0,0,0] > > [0,0

Re: numpy permutations with replacement

2009-04-13 Thread Chris Rebert
On Mon, Apr 13, 2009 at 4:05 AM, skorpi...@gmail.com wrote: > I am trying to generate all possible permutations of length three from > elements of [0,1]. i.e in this scenario there are a total of 8 > distinct permutations: > > [0,0,0] > [0,0,1] > [0,1,0] >    . >    . >    . > [1,1,1] > > > Does n

numpy permutations with replacement

2009-04-13 Thread skorpi...@gmail.com
I am trying to generate all possible permutations of length three from elements of [0,1]. i.e in this scenario there are a total of 8 distinct permutations: [0,0,0] [0,0,1] [0,1,0] . . . [1,1,1] Does numpy define a function to achieve this ? Thanks in advance -- http://mail.python.o