Stuck with Stan compiling with cmdstanr

Thanks, @Ven_Popov. I forgot that we removed the old syntax support for arrays, which looked like this.

int x[n];

The new way to declare arrays is this:

array[n] int x;

Could you try that and if it works, please mark @Ven_Popov’s reply as the solution? Thanks.

P.S. The reason we did that is so that the type is a contiguous string (“array[n] int”), which we needed in order to implement tuples.

1 Like