[Numpy-discussion] Numpy float precision vs Python list float issue

Matthieu Brucher matthieu.brucher@gmail....
Mon Apr 20 12:47:57 CDT 2009

> I understand the numerical mathematics behind this very well but my
> point is that his two algorithms appear to be identical (same
> operations, same order), he simply uses lists in one and arrays in the
> other. It's not like he used vectorization or other array-related
> operations - he uses for loops in both cases. Of course I agree that
> 1e-15 error should be acceptable, but that's not the point. I think
> there is legitimate curiosity in wondering why there is any difference
> between using the two data types in exactly the same algorithm.

There are cases where the same algorithm implementation outputs
different results in optimized mode, depending on data alignment. As
David said, this is something that is known or at least better known.

Information System Engineer, Ph.D.
Website: http://matthieu-brucher.developpez.com/
Blogs: http://matt.eifelle.com and http://blog.developpez.com/?blog=92
LinkedIn: http://www.linkedin.com/in/matthieubrucher

More information about the Numpy-discussion mailing list