Re: [Numpy-discussion] Applying formula to all in an array which hasvalue from previous

2010-04-02 Thread Vishal Rana
; vecfun.ufunc.accumulate(array((0,1,2,3,4,5,6,7,8,9)) > > > Nadav. > > > -Original Message- > From: numpy-discussion-boun...@scipy.org on behalf of Vishal Rana > Sent: Sun 28-Mar-10 21:19 > To: Discussion of Numerical Python > Subject: [Numpy-discussion] Applying formula to a

Re: [Numpy-discussion] Applying formula to all in an array which hasvalue from previous

2010-03-29 Thread Vishal Rana
as np > > vecfun = np.vectorize(func) > > vecfun.ufunc.accumulate(array((0,1,2,3,4,5,6,7,8,9)) > > > Nadav. > > > -Original Message- > From: numpy-discussion-boun...@scipy.org on behalf of Vishal Rana > Sent: Sun 28-Mar-10 21:19 > To: Discussion of Numeric

Re: [Numpy-discussion] Applying formula to all in an array which hasvalue from previous

2010-03-29 Thread Nadav Horesh
- From: numpy-discussion-boun...@scipy.org on behalf of Vishal Rana Sent: Sun 28-Mar-10 21:19 To: Discussion of Numerical Python Subject: [Numpy-discussion] Applying formula to all in an array which hasvalue from previous Hi, For a numpy array: array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]) I do some