Hmm, so it does. I'm wondering if fit-test-delta is always
called with last-step and current-position derived from the
same fit object. In which case, would it make sense
to just have one argument there, the fit object?
E.g. (fit-test-delta fit 1.0d-4 1.0d-4)
What do you think?
Liam
On Wed, Apr 21, 2010 at 10:15 PM, Russell Kliese <russell(a)kliese.id.au> wrote:
> 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(a)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