nimble-dev / nimble

The base NIMBLE package for R
http://R-nimble.org
BSD 3-Clause "New" or "Revised" License
156 stars 23 forks source link

additional catch for vector inits lists of lists #1376

Closed danielturek closed 9 months ago

danielturek commented 9 months ago

Error fix for inits provided as a list of lists, for non-scalar inits lists.

danielturek commented 9 months ago

This PR adds an additional check, when inits is provided as a list-of-initial-values-lists.

With this change, in the assignDimensions method, we only use the first list of initial values for determining model dimensions.