I don't know a better way to do that. We require sizes
for everything, which is a pain for these derived quantities,
but does allow for error checking.
It's not pretty, but I wouldn't worry about efficiency
because this will only be done once when the data's loaded.
We might eventually move to allow dynamically sized variables
along the lines of how the Eigen matrix library works. We
already do that in functions.
- Bob
> --
> You received this message because you are subscribed to the Google Groups "Stan users mailing list" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
stan-users+...@googlegroups.com.
> To post to this group, send email to
stan-...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.
>
>