[Numpy-discussion] Floating point "close" function?
Sat Mar 3 10:03:23 CST 2012
On Sat, Mar 3, 2012 at 15:51, Olivier Delalleau <email@example.com> wrote:
> Le 3 mars 2012 10:27, Robert Kern <firstname.lastname@example.org> a écrit :
>> On Sat, Mar 3, 2012 at 14:34, Robert Kern <email@example.com> wrote:
>> > On Sat, Mar 3, 2012 at 14:31, Ralf Gommers <firstname.lastname@example.org>
>> > 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?
No. np.allclose() is essentially doing exactly this already.
More information about the NumPy-Discussion