[Numpy-discussion] Floating point "close" function?

Olivier Delalleau shish@keba...
Sat Mar 3 09:51:13 CST 2012


Le 3 mars 2012 10:27, Robert Kern <robert.kern@gmail.com> a écrit :

> On Sat, Mar 3, 2012 at 14:34, Robert Kern <robert.kern@gmail.com> wrote:
> > On Sat, Mar 3, 2012 at 14:31, Ralf Gommers <ralf.gommers@googlemail.com>
> wrote:
>
> >> Because this is also bad:
> >>>>> np.<TAB>
> >> Display all 561 possibilities? (y or n)
> >
> > Not as bad as overloading np.allclose(x,y,return_array=True). Or
> > deprecating np.allclose() in favor of np.close().all().
>
> I screwed up this paragraph. I meant that as "Another alternative
> would be to deprecate ...".
>

np.close().all() would probably be a lot less efficient in terms of CPU /
memory though, wouldn't it?

-=- Olivier
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20120303/978f25a2/attachment.html 


More information about the NumPy-Discussion mailing list