Thread: mathematical Libraries

  1. #1
    Registered User
    Join Date
    Sep 2008
    Posts
    8

    mathematical Libraries

    Hi. I work above all with Matlab (in C I am a beginner), but i know that a well programmed C code is faster than a Matlab one. So, is there any mathematical library which contains functions similar to Matlab functions (like gradient, fft, fspecial, filter2, ...)? Or does somebody know any way to convert a .m code to an optimum .c or .cpp?
    Because i may compare 2 algorithms, Matlab one is faster (in theory), but in Matlab the algorihm developed in C (and convert to mex to compare) is faster.
    Thank you.

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    A couple mathematical libraries are LAPACK/BLAS for linear algebra, and GMP for ... well, pretty much everything. Depending on your setup you may already have the first installed.

    Edit: I said GMP but meant GSL. Sorry.
    Last edited by tabstop; 09-27-2008 at 06:27 PM.

  3. #3
    Registered User
    Join Date
    Sep 2008
    Posts
    8
    Ok, i'll look for it. Thank you.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. GCC: Compiling with both static and shared libraries
    By eatwithaspork in forum C Programming
    Replies: 4
    Last Post: 06-23-2008, 01:48 PM
  2. Replies: 7
    Last Post: 05-13-2008, 03:47 AM
  3. MinGW thread-safe runtime libraries
    By Mario F. in forum C++ Programming
    Replies: 3
    Last Post: 08-21-2006, 08:15 AM
  4. Libraries and headers
    By darksaidin in forum C++ Programming
    Replies: 10
    Last Post: 07-23-2003, 06:24 AM
  5. QT and external libraries
    By Quacker in forum Linux Programming
    Replies: 1
    Last Post: 04-08-2003, 07:02 AM