Hi Tim On Wed, Jun 21, 2006 at 12:02:27PM -0700, Tim Hochberg wrote: > > Numexpr can now handle broadcasting. As an example, check out this > implementation of the distance-in-a-bunch-of-dimenstions function that's > been going around. This is 80% faster than the most recent one posted on > my box and considerably easier to read.
This looks really cool. However, it does seem to break scalar operation: a = 3. b = 4. expr = numexpr("2*a+3*b",[('a',float),('b'.float)]) expr.run(a,b) Out[41]: array(-7.1680117685147315e-39) I havn't used numexpr before, so I could be doing something silly (although I did verify that the above works on r1986). Cheers Stéfan All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 _______________________________________________ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/numpy-discussion