You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently when subsetting, x[1,2,3] will convert from array<Type> to Type. I suspect this causes more headaches than it solves, in particular, whether sum() will work on the end result.
Try turning it off, and see if we can get by with using [[ to resolve any cases that it breaks.
If this works, we can get rid of the condition surrounding sum in g3l_distribution_sumofsquares()
The text was updated successfully, but these errors were encountered:
Remove auto-scalar-ing from run_tmb, deal with some of the fallout.
Expressions like:
x[1,2,3] <- y
...are problematic. y could either be a scalar (as with
nllstock__weight) or a vector (as with assigning to reports). So
automatically doing x[1,2,3][[1]] won't do the right thing in all
cases, and having to add it manually (as is being done below) is ugly
to say the least.
Ideally tmbutils::array would sort this out for us.
There's also transform matrix tests failing, which may or may not be
related.
Currently when subsetting,
x[1,2,3]
will convert fromarray<Type>
toType
. I suspect this causes more headaches than it solves, in particular, whethersum()
will work on the end result.Try turning it off, and see if we can get by with using
[[
to resolve any cases that it breaks.If this works, we can get rid of the condition surrounding sum in
g3l_distribution_sumofsquares()
The text was updated successfully, but these errors were encountered: