LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 05-20-2005, 02:42 PM   #1
kooshball
LQ Newbie
 
Registered: May 2005
Posts: 16

Rep: Reputation: 0
math library for linux


hi,
im lookign for a performance optimized math library for linux running on i386 arch. i was told DXML(CXML) is the best but it only seem to be supported on alpha and digital unix. can anyone suggest an alternative for i386? i downloaded the intel math kernel library but dotn know how that compares performance wise to other ones.
thx
 
Old 05-23-2005, 01:58 PM   #2
kooshball
LQ Newbie
 
Registered: May 2005
Posts: 16

Original Poster
Rep: Reputation: 0
bumper
 
Old 05-23-2005, 02:19 PM   #3
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,604

Rep: Reputation: 134Reputation: 134
You can always create 2 program tests which do the same math
functions and run them through time command from the shell

Last edited by keefaz; 05-23-2005 at 02:21 PM.
 
Old 05-28-2005, 07:28 AM   #4
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,990

Rep: Reputation: 67
The relative performance of different libraries varies wildly depending on the exact model of processor that you are using, and the optimisation characteristics of the compiler.

If speed is your concern, then you'll probably find that gcc -O3 will optimise almost any source code very well (unless it relies heavily on bad constructs like goto: and global variables, which are notoriously hard to optimise around anyway). You could also try playing with the various optimisation tags.

However, the best way to make a program run fast is still to optimise your algorims to be the lowest order possible, for large data sets, and the smallest number of instructions for small data sets.
 
Old 05-28-2005, 07:05 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,983
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
I don't know the thing you mentioned, but have you seen
http://www.ginac.de/CLN/
?


Cheers,
Tink
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ANSI C: Math library making #include unnecessary? olspookishmagus Programming 3 11-01-2005 09:50 AM
Symbolic math in Linux? clausawits Linux - Software 5 02-06-2005 01:25 AM
C+ library on Linux libra610 Programming 2 12-10-2004 02:00 AM
howto compile bin with my library using all-static and shared linked standart library stpg Programming 4 06-29-2004 04:20 AM
what is the function library of the basic graphics library in rethat9.0? zerwolve Red Hat 0 04-29-2004 09:18 PM


All times are GMT -5. The time now is 08:09 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration