Skip to content

Add allclose#2771

Merged
mrocklin merged 6 commits intodask:masterfrom
jakirkham:add_allclose
Oct 13, 2017
Merged

Add allclose#2771
mrocklin merged 6 commits intodask:masterfrom
jakirkham:add_allclose

Conversation

@jakirkham
Copy link
Copy Markdown
Member

Fixes #2756

Implements the equivalent of NumPy's allclose for Dask Arrays and adds it to the public API. Simply leverages Dask Array's isclose function and all method for the computation. Provides a simple test of Dask Array's allclose compared to NumPy. Includes allclose in Dask Array's API docs and mentions it in the changelog.

Implements the equivalent of NumPy's `allclose` for Dask Arrays. Does
this by simply using the existing `isclose` operation for comparing each
element. Then calls `all` on the result of `isclose` to collapse it down
to a single `bool`.
Provides a very simple test of Dask Array's `allclose`, which compares
the result against NumPy's `allclose`. Basically borrows and tweaks a
test used for Dask Array's `isclose`.
@jakirkham jakirkham mentioned this pull request Oct 12, 2017
@mrocklin mrocklin merged commit bd565c3 into dask:master Oct 13, 2017
@jakirkham jakirkham deleted the add_allclose branch October 13, 2017 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add allclose

2 participants