-
-
Notifications
You must be signed in to change notification settings - Fork 374
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
Type checking for ODE-solvers is broken #2731
Comments
Wow. Thanks for catching this. I've verified that it's a bug and it's been around since at least v2.16.0. At some point I thought we had done this properly, but clearly not. |
Thanks for verifying! It's been fixed in stanc3. |
We should fix this on develop if we're able to.
I'll cc people later; I'm on my phone right now and can't remember handles.
…On Fri, Jan 25, 2019 at 8:30 AM Matthijs Vákár ***@***.***> wrote:
Thanks for verifying! It's been fixed in stanc3.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2731 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAZ_F0Uy8eASuh16TLstVy0OAxJGPGi_ks5vGwcAgaJpZM4aRtpZ>
.
|
I was in the room when @VMatthijs found this 😂 |
assigning this myself with the best of intentions. |
I believe there's a PR in progress for letting the initial time be variable.
… The initial and non-initial time arguments to the ODE-solvers should be data only. This is the only thing that is currently implemented in the Math library.
|
This is a language issue. Are we going to keep patching the C++ transpiler or just wait for the OCaml version for all these fixes? There's a pile of these things that Matthijs has found already.
|
@bob-carpenter, let's have the general discussion on discourse: https://discourse.mc-stan.org/t/stan-language-do-we-patch-existing-c-transpiler-or-do-we-wait-for-the-ocaml-version/7436 Once we have a consistent position, we can report back on whether we'll fix this or not using the existing C++ transpiler. |
there is a PR underway for some while now which will allow the initial time and the time vector to be |
This issue seems to have been solved by the PR stan-dev/math#1072 . |
Summary:
Some inputs to the ODE-solvers pass the Stan type check and fail on C++ compilation.
Description:
Data only argument status is not propagated correctly through function calls.
Reproducible Steps:
Try to compile
It passes stanc, but fails on C++ compilation. Same with any of the other ODE-solvers.
Current Output:
No stanc type checking error.
Expected Output:
A stanc type checking error.
Additional Information:
This should also be fixed in the manual.
Current Version:
v2.18.1
The text was updated successfully, but these errors were encountered: