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

Unify isapprox with Base.isapprox #190

Merged
merged 1 commit into from
May 31, 2019
Merged

Conversation

jkozdon
Copy link
Contributor

@jkozdon jkozdon commented May 8, 2019

In JuliaLang/julia#22742 isapprox changed from using
atol + rtol*max(abs(x), abs(y)))
to using
max(atol, rtol*max(abs(x), abs(y))))

In JuliaLang/julia#22742 isapprox changed from
using
   atol + rtol*max(abs(x), abs(y)))
to using
   max(atol, rtol*max(abs(x), abs(y))))
@jkozdon
Copy link
Contributor Author

jkozdon commented May 8, 2019

Just realized that the main issue I was dealing with was actually the definition of isapprox in stdlib/LinearAlgebra/src/generic.jl. Namely isapprox(A, B) is different than isapprox(Array(A), Array(B)) when A and B are GPUArrays.

Since this only arose in some testing code for me, I'm going to punt on it for now. But can throw up an issue instead of this PR if desired.

@maleadt
Copy link
Member

maleadt commented May 8, 2019

Could you post an MWE that shows the issue? In case anybody wants to tackle this.

@maleadt
Copy link
Member

maleadt commented May 9, 2019

bors try

bors bot added a commit that referenced this pull request May 9, 2019
@bors
Copy link
Contributor

bors bot commented May 9, 2019

@maleadt maleadt merged commit 58ba507 into JuliaGPU:master May 31, 2019
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