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

isfinite error #11

Closed
taylormcd opened this issue Mar 8, 2019 · 0 comments · Fixed by #12
Closed

isfinite error #11

taylormcd opened this issue Mar 8, 2019 · 0 comments · Fixed by #12

Comments

@taylormcd
Copy link
Contributor

This line of code
isfinite(SimpleRatio(1,1))
yields the following

ERROR: MethodError: no method matching decompose(::SimpleRatio{Int64})
Closest candidates are:
  decompose(::BigFloat) at hashing2.jl:133
  decompose(::Float64) at hashing2.jl:122
  decompose(::Float32) at hashing2.jl:111
  ...
Stacktrace:
 [1] isfinite(::SimpleRatio{Int64}) at ./float.jl:546
 [2] top-level scope at none:0

I ran into this while using Interpolations and ForwardDiff with NaN checking enabled. I'm assuming that this just hasn't been implemented yet for the SimpleRatio type.

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 a pull request may close this issue.

1 participant