Has anyone tried to build c or c++ code for the Matlab cubic spline equivalent functionality (interp1 or spline). We have a need to match the Matlab output for cubic spline interpolation. The Matlab algo is derived from 'A practical guide to splines' book from deBoor C., which I don't have currently.
Should the approach be looking at the Matlab code and trying to imitate on c++ side, or follow the book, or another source I found was 'Numerical Recipes'. Any experience or pointer to which one is the best approach?
Thanks,
Andy
As far as I remember (and I'm not verifying this at the moment), all
code from de Boor's book is in fortran. And available on his webpage.
Those are simple routines (from a programmer's point of view), and
shouldn't be that hard to translate to c.
best regards,
Heinrich
> As far as I remember (and I'm not verifying this at the moment), all
> code from de Boor's book is in fortran. And available on his webpage.
> Those are simple routines (from a programmer's point of view), and
> shouldn't be that hard to translate to c.
There is also "Numerical Recipes in C".
NB: some people have indicated to me that both versions have bugs, more so in
the C version. I haven't looked at the code myself, so I do not know this to
be true.
- Andy
Walter Roberson <robe...@hushmail.com> wrote in message <hjst9k$2ej$1...@canopus.cc.umanitoba.ca>...