[Gsll-devel] Patch that exports symbols required to use non-linear fitting outside the gsl package
![](https://secure.gravatar.com/avatar/9396a2497cb89533c2970deb5e1e63dc.jpg?s=120&d=mm&r=g)
Hi, I think some additional exports are required in order to make use of the non-linear least-squares fitting outside of the gsl package. Attached is a patch that achieves this. Cheers, Russell
![](https://secure.gravatar.com/avatar/0c56ad729ee52870cc477ddea4b23bd6.jpg?s=120&d=mm&r=g)
Russell, Can you give an example showing why this function is needed? If I understand correctly, #'solution gives an marray which can be used like any other marray. As a general practice I don't define functions returning raw pointers unless the exclusive use of the returned value from the original function use is to pass to a GSL function that must take a raw pointer, and that is very rare. Liam On Mon, Apr 12, 2010 at 3:41 AM, Russell Kliese <russell@kliese.id.au> wrote:
Hi,
I think some additional exports are required in order to make use of the non-linear least-squares fitting outside of the gsl package. Attached is a patch that achieves this.
Cheers,
Russell
_______________________________________________ Gsll-devel mailing list Gsll-devel@common-lisp.net http://common-lisp.net/cgi-bin/mailman/listinfo/gsll-devel
![](https://secure.gravatar.com/avatar/9396a2497cb89533c2970deb5e1e63dc.jpg?s=120&d=mm&r=g)
Hi Liam, The example included at the bottom of gsll/solve-minimize-fit/nonlinear-least-squares.lisp, line 373 (fit-test-delta (last-step fit) (mpointer (solution fit)) 1.0d-4 1.0d-4)) uses (mpointer (solution fit)). Because mpointer isn't exported, I thought I would create a specific function like last-step and jacobian that return raw pointers. I don't really have a good working knowledge of the internals of gsll so this may be a naive fix. Cheers, Russell 2010/4/22 Liam Healy <lhealy@common-lisp.net>:
Russell,
Can you give an example showing why this function is needed? If I understand correctly, #'solution gives an marray which can be used like any other marray. As a general practice I don't define functions returning raw pointers unless the exclusive use of the returned value from the original function use is to pass to a GSL function that must take a raw pointer, and that is very rare.
Liam
On Mon, Apr 12, 2010 at 3:41 AM, Russell Kliese <russell@kliese.id.au> wrote:
Hi,
I think some additional exports are required in order to make use of the non-linear least-squares fitting outside of the gsl package. Attached is a patch that achieves this.
Cheers,
Russell
participants (2)
-
Liam Healy
-
Russell Kliese