stan-dev / stanc3

The Stan transpiler (from Stan to C++ and beyond).
BSD 3-Clause "New" or "Revised" License
140 stars 44 forks source link

Debug flag `--debug-generate-inits` fails if sizes of parameters are based on data #1317

Closed WardBrian closed 1 year ago

WardBrian commented 1 year ago

Added in #1306.

Not clear what the correct thing to do is - maybe also generate data at the same time? Just omit them?

nhuurre commented 1 year ago

I'd say the correct thing to do is to require a data file as input. Actually, even --debug-generate-data could accept partial input data. For instance you might have data { int N; vector[N] x; } and you want to generate data with N=10.

WardBrian commented 1 year ago

That would be the most useful choice, but also the most complicated I believe.