logo       

RE: Using sum() within a function: msg#00044

python.numeric.general

Subject: RE: Using sum() within a function


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>
Google Custom Search

News | FAQ | advertise