Closed nhuurre closed 1 year ago
I think that the issue may actually be that eigenvalues
has the wrong return type in the Math library. The type is given as Eigen::Matrix<complex_return_t<value_type_t<EigMat>>, 1, -1>
, which is a row vector.
@syclik and I went back and forth in https://github.com/stan-dev/math/pull/2846/ about whether or not to have the return type be auto
, and then missed the fact that I wrote down the wrong type when I did explicitly write it out... oops
This model compiles but running it fails with exception
But the variable sizes are correct. It even works when placed inside an array:
Current Version:
v2.32.2