GSL-like math library?

Does anybody know of a GSL-like math library that can do Akima and cubic spline interpolation? It needs to be LGPLv2+ or some variant of BSD. GSL is GPLv3 which  is incompatible with the the LGPLv2+ used in libcolord. GPL for a library is such a bad idea it’s not even funny.

10 responses to “GSL-like math library?”

  1. Alexandre

    Did you check Boost?

    1. James

      Isn’t LGPLv3+ compatible with GPLv.3+?
      You can bump libcolord to v.3 to obtain compatibility I think. Not a licensing expert though.

      For your math question, you might find the code you want in octave.

      1. Hub

        The problem is that a GPL library turn the resulting software to GPL, ie it defeat the LGPL licensing that libcolord is licensed under.

  2. Alexandre

    Another possibility is http://lib2geom.sourceforge.net/, but IMHO it’s an overkill for what you are probably trying to do.

  3. Thomas

    No akima; but cubic spline in bsd here: https://code.google.com/p/csa-c/

  4. Alex

    I suspect that there were no real alternatives to GSL when it was released, so it was licensed under the GPL in order to put pressure on proprietary software vendors who might want to use it. That seems to be the FSF way, from what I have read.

  5. James

    Isn’t LGPLv3+ compatible with GPLv.3+?
    You can bump libcolord to v.3 to obtain compatibility I think. Not a licensing expert though.

    For your math question, you might find the code you want in octave.

    1. Matthias

      I suggested that too, at first – but the problem here is that it is not allowed to link a LGPL library against GPL code. And GSL is, unfortunately, GPL and not LGPL.

      1. Hub

        It is allowed. But it turns the result into a GPL licensed software, make it incompatible with a lot of case where LPLG is fine. It is why GPL is often called “viral”

  6. Kevin Kofler

    BSD-licensed (without the obnoxious advertising clause) Akima C implementation:
    http://www.lfd.uci.edu/~gohlke/code/akima.c.html

    It looks like a very straightforward function, most of that file is wrappers to export the function to Python.

Bad Behavior has blocked 2769 access attempts in the last 7 days.