Re: [Numpy-discussion] Numpy newbie question: matrix creation

2013-09-25 Thread Alan G Isaac
On 9/25/2013 3:06 AM, Edmondo Porcu wrote: > advice on how to create a matrix with certain characteristics : > - Every entry should be minimum 0 maximum 1 with a step of 0.1 (legal > values are 0,0.1,0.2,0.3 etc) > - The number of columns of the matrix is a parameter of this matrix creation > a

Re: [Numpy-discussion] Numpy newbie question: matrix creation

2013-09-25 Thread Robert Kern
On Wed, Sep 25, 2013 at 1:12 PM, Edmondo Porcu wrote: > > That's what I was looking for, except that I want to be sure to generate all the possible combinations, and to have no repeated values. Okay, then you need to find all of the integer partitions of 10 with `ncols` elements (padding with 0s

Re: [Numpy-discussion] Numpy newbie question: matrix creation

2013-09-25 Thread Edmondo Porcu
That's what I was looking for, except that I want to be sure to generate all the possible combinations, and to have no repeated values. Thanks Edmondo 2013/9/25 Robert Kern > On Wed, Sep 25, 2013 at 8:06 AM, Edmondo Porcu > wrote: > > > > Dear all, > > > > I am a Newbie with Numpy and I woul

Re: [Numpy-discussion] Numpy newbie question: matrix creation

2013-09-25 Thread Robert Kern
On Wed, Sep 25, 2013 at 8:06 AM, Edmondo Porcu wrote: > > Dear all, > > I am a Newbie with Numpy and I would need some advice on how to create a matrix with certain characteristics : > > - Every entry should be minimum 0 maximum 1 with a step of 0.1 (legal values are 0,0.1,0.2,0.3 etc) > > - The

Re: [Numpy-discussion] Numpy newbie question: matrix creation

2013-09-25 Thread Stéfan van der Walt
On Wed, Sep 25, 2013 at 9:06 AM, Edmondo Porcu wrote: > I am a Newbie with Numpy and I would need some advice on how to create a > matrix with certain characteristics : > > - Every entry should be minimum 0 maximum 1 with a step of 0.1 (legal > values are 0,0.1,0.2,0.3 etc) You can generate rand

[Numpy-discussion] Numpy newbie question: matrix creation

2013-09-25 Thread Edmondo Porcu
Dear all, I am a Newbie with Numpy and I would need some advice on how to create a matrix with certain characteristics : - Every entry should be minimum 0 maximum 1 with a step of 0.1 (legal values are 0,0.1,0.2,0.3 etc) - The number of columns of the matrix is a parameter of this matrix creati