Closed andrjohns closed 1 year ago
The compiler is just generating stan::math::normal_lpdf<false>(stan::math::eigenvalues_sym(M), 0, 1)
, which to me suggests this is a bug in the Math library.
Ah found the Math problem
Nice catch, should be an easy fix in the math library
Opening the issue here, but it might be better suited to the Math library, so feel free to move.
The following model fails to compile:
With the error:
But works if the
eigenvalues_sym(M)
is assigned to a temporary first: