[SciPy-user] allclose friend
Tom Johnson
tjhnson at gmail.com
Thu Jan 10 21:08:43 EST 2008
On Jan 10, 2008 6:02 PM, Tom Johnson <tjhnson at gmail.com> wrote:
> 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.
>
I know I can just loop through the arrays calling allclose on
singlets, but is this the preferred way to do it?
More information about the SciPy-User
mailing list