<div dir="ltr"><div>I am trying to write the interface to this gsl function: gsl_multifit_fdfsolver_jac (I believe introduced in gsl 2.0) that is necessary for nonlinear-least-squares.lisp</div><div><br></div><div>(It is returns the Jacobian)  See <a href="https://www.gnu.org/software/gsl/manual/html_node/Computing-the-covariance-matrix-of-best-fit-parameters.html#Computing-the-covariance-matrix-of-best-fit-parameters">documentation</a> and example usage:</div><div><pre class="" style="color:rgb(0,0,0)">gsl_multifit_fdfsolver_jac(s, J);
gsl_multifit_covar (J, 0.0, covar);</pre></div><div><br></div><div>This is my failed attempt after looking at gsll code and documentation</div><div><br></div><div><div>(defmfun jacobian (solver)</div><div>  "gsl_multifit_fdfsolver_jac"</div><div>  (((mpointer solver) :pointer) (*jacobian :pointer)</div><div>  :definition :function</div><div>  :inputs (solver)</div><div>  :outputs (*jacobian)</div><div>  :c-return :success-failure</div><div>  :return ((make-foreign-array-from-mpointer *jacobian))</div><div>  :documentation "Query the solver for the Jacobian, a pointer")</div></div><div><br></div><div>Can someone tell me how to make this work?</div><div><br></div><div>Thanks,</div><div><br></div><div>Mirko</div></div>