27 Dec
2008
27 Dec
'08
3:58 a.m.
I am trying to run gsll on clisp which is running on cygwin & windows. It compiles and loads OK. I am trying to run the nonlinear fit example, and following the instructions in the comments at the end of the file.
(nlls-setup) ;works OK
(solve-nonlinear-least-squares-example) gives an error: FFI::FOREIGN-CALL-OUT: 0 connot be converted to foreign type DOUBLE-FLOAT.
By commenting out pieces of the code, it looks that the statement ...(fit (nonlinear-fdffit *levenberg-marquardt* *number-of-observations* *number-of-parameters* exponential-residual init)) ... is the one that causes the error. I was unable to dig deeper. Any thoughts where the problem may be? Thanks, Mirko