[Numpy-discussion] Rookie problems - Why is C-code much faster?

Sasha ndarray at mac.com
Tue Feb 21 07:32:09 CST 2006


On 2/21/06, Mads Ipsen <mpi at osc.kiku.dk> wrote:
> Maybe I am wrong here, but around() and rint() is supposed to round to
> the closest integer, i.e. for x = array([1.1, 1.8])

You are right. In the follow-up I've suggested to speed-up the case
decimals=0 in around in around instead of adding another function.  I
think that would be a more "pythonic" solution.




More information about the Numpy-discussion mailing list