Skip to content

Conversation

@mneumann
Copy link
Contributor

Test if every element of the iterator matches a predicate.

This is useful, for instance, to test if two matrices are elementwise
"similar" (within a given threshold) without modifying the matrices.false

Test if every element of the iterator matches a predicate.

This is useful, for instance, to test if two matrices are elementwise
"similar" (within a given threshold) without modifying the matrices.
Copy link
Member

@jturner314 jturner314 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks useful. I've added a couple of comments. It would be nice to add an .any() method too, but that doesn't have to be part of this PR.

@jturner314
Copy link
Member

Once this is merged, I'll rewrite #581 in terms of .all().

Copy link
Member

@jturner314 jturner314 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. I'll wait a little while for comments from anyone else and then merge this.

@LukeMathWalker
Copy link
Member

Happy to merge this @jturner314 👍

@jturner314
Copy link
Member

@LukeMathWalker Sure, please go ahead.

@LukeMathWalker LukeMathWalker merged commit 44bf8b8 into rust-ndarray:master Apr 25, 2019
@mneumann mneumann deleted the zip_all branch August 2, 2019 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants