[SciPy-user] allclose friend

Tom Johnson tjhnson@gmail....
Thu Jan 10 20:02:00 CST 2008


allclose() is neat in that it handles the 'special' cases of inf and
nan.  Does there exist a similar function close()? That is, I want to
do elementwise float comparisons of two arrays (returning an array of
booleans)...and I want all the special cases to be handled.  It seems
like this should be an obvious function. There are enough lines in
allclose() that I don't want to have to reimplement it everytime on my
own.


More information about the SciPy-user mailing list