-
Notifications
You must be signed in to change notification settings - Fork 71
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
Compatibility with NaNMath.jl? #626
Comments
There are two things here
|
I'm imagining an Interval Arithmetic extension that loops through all the NaNMath.jl functions, giving them methods that fallback to Base (or other, e.g. SpecialFunctions.jl) on Interval inputs? I'm happy to look into this in more detail soon. I'm also thinking of applying this to Symbolics.jl for |
That would be a nice addition; I like the proposal of having it as an extension. |
I've added fallbacks for NaNMath.jl functions that have equivalents in Base. Are you guys fine with adding NaNMath.jl to the test environment? Or is there an alternative test procedure you prefer? |
Yes if we do end up supporting NaNMath.jl as an extension, we would want to have some tests as well. |
So apparently there's already some headway on falling back NaNMath functions to Base. It's not completed in NaNMath so I might divert my energies there for this feature. |
If there is a more general solution which does not require an explicit package extension, then yes that sounds pretty great! Feel free to close this issue of course; in any case, you can re-open it at any time 🙂 |
Having written some of my functions with
NaNMath.jl
versions of mathematical functions, feeding themInterval
s results in aStackOverflowError
.E.g.
Any possibility of future compatibility?
Not sure if this is an issue to raise in NaNMath.jl or here.
My first guess would be to overload NaNMath functions with
Interval
arguments as a package extension? Maybe such an overload would call the regular Julia functions back.The text was updated successfully, but these errors were encountered: