0

I have seen quite a few nice math libraries for C++ (Eigen, GLM, etc), but I notice they are all C++ only and my program is written strictly in C. I need a fast native C library for math, especially linear algebra, and would rather not write a wrapper for Eigen. What are some recommended libraries?

1 Answer 1

1

Based on my experience, most modern math libraries are written on C++ or Python, but there are also old libraries (originally written in Fortran) for math exist:

  • GSL: as stated in a name, it's a scientific library, there are a variety of a math branches supported, including linear algebra, statistics, different integration methods, series, optimization procedures and much more.
  • LAPACK and BLAS: two very old, supported and efficient libraries for linear algebra, LAPACK is used in Matlab, Mathematica and other mathematics software for linear algebra support.
  • ATLAS: from the project site:

    ATLAS's purpose is to provide portably optimal linear algebra software.

3
  • "This can be a good . . ." - don't keep me in suspense! :-) Commented Sep 24, 2014 at 10:32
  • @NeilSlater oh... Now I'm curious too!
    – user7638
    Commented Sep 24, 2014 at 12:09
  • It is an incomplete sentence, I thought maybe you had clicked "submit" before you finished. I suggested some changes of phrasing as an edit. Commented Sep 25, 2014 at 9:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.