*** Exception: toEnum{StopReason}: tag (-1) is outside of enumeration's range (0,6)
Closed this issue · 2 comments
alang9 commented
I get the following runtime error in ghc 7.0.3 and ghc 7.2.1
levmar (const (singleton 0)) Nothing (replicate 2 0) (singleton 0) 0 defaultOpts mempty
Right (fromList [0.0,0.0],*** Exception: toEnum{StopReason}: tag (-1) is outside of enumeration's range (0,6)
This appears to happen whenever the parameters vector has length 2 or greater
alang9 commented
Rather, it appears to happen whenever the number of parameters exceeds the number of samples.
basvandijk commented
Thanks for the bug report!
I fixed it and released a new version.