nimble-dev / nimble

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

additional catch for vector inits lists of lists #1376

Closed danielturek closed 11 months ago

danielturek commented 11 months ago

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

danielturek commented 11 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.