|
RE: Using sum() within a function: msg#00044python.numeric.general
Jim Cser wrote: > > The loop was indeed wrong, and "tempval = 0.*x" was the trick I needed, > thanks. Unfortunately, iterating over t is still extremely slow. > Ideally, there would be a way to use fromfunction() with slices as > arguments. If the other 3 dimensions are small (e.g., each time sample involves an array whose size is less than 1000 elements total), then the slowness is due to the small arrays. In that event you may want iterate over a different dimension than time, or construct the for loop to iterate over ranges of times rather than one at a time. Perry ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Is there a better way to do this?: 00044, Rob Hooft |
|---|---|
| Next by Date: | ANN: Python/Scientific Job openings at Enthought: 00044, eric jones |
| Previous by Thread: | Re: Using sum() within a functioni: 00044, Jim Cser |
| Next by Thread: | RE: Using sum() within a function: 00044, jimcser |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |