Re: [Numpy-discussion] array manupulation

2013-05-26 Thread Sudheer Joseph
to you. >> >>This  array is obtained by doing a  >>csum=np.cumsum(prcnt), which apparently doing some thing which I am not able >>to visualize. >> >>with best regards, >>Sudheer. >> >>>From:Aronne Merrelli >> >>>To:Discussion of

Re: [Numpy-discussion] array manupulation

2013-05-26 Thread Olivier Delalleau
('csum.npy') should get the array to you. > > This array is obtained by doing a > csum=np.cumsum(prcnt), which apparently doing some thing which I am not > able to visualize. > > with best regards, > Sudheer. > > >From:Aronne Merrelli > >To:Discussion of

Re: [Numpy-discussion] array manupulation

2013-05-26 Thread Sudheer Joseph
ize. with best regards, Sudheer. >From:Aronne Merrelli >To:Discussion of Numerical Python >Sent:Sunday, 26 May 2013 2:13 PM >Subject:Re: [Numpy-discussion] array manupulation > > > > > >On Sun, May 26, 2013 at 4:30 AM, Sudheer Joseph >wrote: > >Dear Brian,

Re: [Numpy-discussion] array manupulation

2013-05-26 Thread Aronne Merrelli
On Sun, May 26, 2013 at 4:30 AM, Sudheer Joseph wrote: > Dear Brian, > I even tried below but no luck! > In [138]: xx=np.zeros(11) > In [139]: xx > Out[139]: array([ 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]) > > In [147]: xx.shape > Out[147]: (11,) > In [140]: xx=np.ar

Re: [Numpy-discussion] array manupulation

2013-05-25 Thread Sudheer Joseph
- Original Message - > From: Sudheer Joseph > To: Discussion of Numerical Python > Cc: > Sent: Sunday, 26 May 2013 6:25 AM > Subject: Re: [Numpy-discussion] array manupulation > >T hank you Brian, >                      Though the simple example worked for me,

Re: [Numpy-discussion] array manupulation

2013-05-25 Thread Sudheer Joseph
nsions except for the concatenation axis must match exactly - Original Message - > From: Bryan Van de Ven > To: Discussion of Numerical Python > Cc: > Sent: Saturday, 25 May 2013 11:54 PM > Subject: Re: [Numpy-discussion] array manupulation > > I'm not sure

Re: [Numpy-discussion] array manupulation

2013-05-25 Thread Sudheer Joseph
*** - Original Message - > From: Bryan Van de Ven > To: Discussion of Numerical Python > Cc: > Sent: Saturday, 25 May 2013 11:54 PM > Subject: Re: [Numpy-discussion] array manupulation > > I'm not sure what you tried, but stack wi

Re: [Numpy-discussion] array manupulation

2013-05-25 Thread Bryan Van de Ven
I'm not sure what you tried, but stack will do what you are seeking: In [7]: cc = np.ones((2,10)) * np.arange(1, 11) In [8]: cc Out[8]: array([[ 1., 2., 3., 4., 5., 6., 7., 8., 9., 10.], [ 1., 2., 3., 4., 5., 6., 7., 8., 9., 10.]]) In [9]: np.vstack((n

[Numpy-discussion] array manupulation

2013-05-25 Thread Sudheer Joseph
Dear experts, I can do below operation in matlab but I wanted to do the same in python numpy array. I tried np.vstak  and np.concatenate but not getting the desired results. please help. I wanted to add a row of zeros to the beginning of a numpy array. What is  the available quick way.  >> cc=[