Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

don't use pointwise isapprox for rough array comparisons #56

Merged
merged 1 commit into from
Aug 25, 2015

Conversation

stevengj
Copy link
Contributor

As discussed in JuliaLang/julia#12393, the roughly comparison for arrays is not really right, because it does a pointwise isapprox comparison. Without a user-specified absolute tolerance, this will make [0,1] not be roughly equal to [1e-15,1], which is probably not intended.

This changes the test to use the new isapprox array functions from JuliaLang/julia#12472.

This PR should probably wait until JuliaLang/Compat.jl#130 lands and is tagged so that the corresponding Compat version can be required.

IainNZ added a commit that referenced this pull request Aug 25, 2015
don't use pointwise isapprox for rough array comparisons
@IainNZ IainNZ merged commit 1355f41 into master Aug 25, 2015
@IainNZ
Copy link
Contributor

IainNZ commented Aug 25, 2015

Thanks!

@IainNZ IainNZ deleted the roughly_vec branch August 25, 2015 03:22
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.

2 participants