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

Using SR.jl types in conjunction with DE.jl #57

Closed
tomkimpson opened this issue Nov 10, 2022 · 1 comment · Fixed by #58
Closed

Using SR.jl types in conjunction with DE.jl #57

tomkimpson opened this issue Nov 10, 2022 · 1 comment · Fixed by #58
Labels
enhancement New feature or request
Milestone

Comments

@tomkimpson
Copy link
Contributor

using DifferentialEquations
using StochasticRounding
f = (u,p,t) -> (p*u)
prob_ode_linear = ODEProblem(f,Float32sr(1.0)/Float32sr(2.0),(Float32sr(0.0),Float32sr(1.0)),Float32sr(1.01));
sol =solve(prob_ode_linear,Tsit5())

Throws a MethodError: no method matching Float32sr(::BigFloat)

Discussed on Slack - may be able to do something similar to how BigFloats are handled in https://github.com/milankl/SoftPosit.jl

@milankl
Copy link
Owner

milankl commented Nov 16, 2022

I believe this issue is similar milankl/SoftPosit.jl#65, the BigFloat conversion is no problem to add, with the other methods I want to be a bit more careful.

@milankl milankl linked a pull request Nov 16, 2022 that will close this issue
@milankl milankl added the enhancement New feature or request label Nov 25, 2022
@milankl milankl added this to the v0.7 milestone Nov 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants