kaskr / RTMB

R bindings to TMB
Other
49 stars 6 forks source link

Crash when optimizing across empty set #19

Closed kaskr closed 9 months ago

kaskr commented 9 months ago

These trivial edge cases do not work:

library(RTMB)
F <- MakeTape(function(x)sum(x*x), 1:3)
F$laplace(integer(0)) ## Crash!
F$newton(integer(0)) ## Crash!