stan-dev / stan

Stan development repository. The master branch contains the current release. The develop branch contains the latest stable development. See the Developer Process Wiki for details.
https://mc-stan.org
BSD 3-Clause "New" or "Revised" License
2.61k stars 369 forks source link

Clean up dimension and name logic in random_var_context #3174

Closed WardBrian closed 1 year ago

WardBrian commented 1 year ago

Submission Checklist

Summary

This uses the new arguments from https://github.com/stan-dev/stan/pull/3139 to avoid doing some extra work in random_var_context.

Intended Effect

The same behavior as before, with less code.

Documentation

Copyright and Licensing

Please list the copyright holder for the work you are submitting (this will be you or your assignee, such as a university or company): Simons Foundation

By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses:

bob-carpenter commented 1 year ago

Feel free to merge when tests pass.