Closed bob-carpenter closed 5 years ago
@bob-carpenter, I don't think this is a math problem. I think it's an RStan problem.
I was able to compile the program in CmdStan on my Mac. I verified that I can not compile it using RStan 2.17.3 on my Mac.
It is not an RStan issue; it is, however, the same Stan Math 2.17.0 issue that has come up several times in the past month. 2.17.1+ calls
lp_accum__.add(normal_log<propto__>(stan::math::abs(y), 0, 1));
whereas 2.17.0 calls
lp_accum__.add(normal_log<propto__>(abs(y), 0, 1));
Sorry about that. Can you verify that using the current Stan + Math versions fix this problem. If so, can we close this issue?
Or perhaps add it as a test for compiling if it can cause problems in the future.
On Wed, Jul 11, 2018 at 11:12 PM bgoodri notifications@github.com wrote:
It is not an RStan issue; it is, however, the same Stan Math 2.17.0 issue that has come up several times in the past month. 2.17.1+ calls lp_accum__.add(normal_log
(stan::math::abs(y), 0, 1)); whereas 2.17.0 calls lp_accum__.add(normal_log
(abs(y), 0, 1)); — You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/stan-dev/math/issues/907#issuecomment-404375839, or mute the thread https://github.com/notifications/unsubscribe-auth/AAZ_F-azHXxG9G6VuDiGl4NJumsM8DNHks5uFr6BgaJpZM4UqKNM .
I just verified that it works now with current develop: 6622078887c237a0900d094d40551b6b9abc13fd
Summary:
See title. This is a
stan-dev/math
issue.A
stan::math::abs()
implementation implementation would probably solve the problem.Reproducible Steps:
Current Output:
This is from RStan:
Expected Output:
Compilation.
Current Version:
v2.17.0