LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 03-01-2005, 03:15 AM   #1
gugamare
LQ Newbie
 
Registered: Dec 2004
Location: São Paulo, Brazil
Distribution: Ubuntu 9.10
Posts: 29

Rep: Reputation: 15
C++ Helper Libraries


Hello guys,

I've got some c++ projects I need to work on for my PhD thesis, and here's the beef:

I've been using Matlab, Perl and Java for a long time, and I've gotten used to using matrices in Matlab, regular expressions in perl to help me with file templates, and Java's extensive helper-classes like String... and I'm kind of dreading having to nail all this stuff again in c++.

Any one recommend any good free library for manipulating strings, and matrices, and etc... I already use STL, but I find their string class very very basic.

thanks in advance
 
Old 03-01-2005, 09:41 AM   #2
dakensta
Member
 
Registered: Jun 2003
Location: SEUK
Distribution: Debian & OS X
Posts: 194

Rep: Reputation: 35
What about boost string manipulation classes:

http://www.boost.org/libs/libraries.htm#String

Matrices ... I have tried loads of different libraries and all have benefits and drawbacks but I have yet to find something universally available (i.e. really common) yet simple and easy to use (such as Matlab and Python).

Boost, above, has a growing BLAS implementation but last time I looked things were still fairly spartan with regards to higher level manipulation, see http://www.boost.org/libs/numeric/ublas/doc/index.htm - if you click on the Overview link at the top, they discuss some other efforts that have been made in this area (these might meet your needs too, IIRC, I had trouble building some of them on all platforms).
IMHO, uBLAS suffers (or did) from over-cryptification and documentation can be confusing. I think they have started a wiki now, so it might be better.

My own needs tend to be met either using a homegrown matrix / vector classes (i.e. simple transformations, limited and fixed functionality, fixed sizes) or building specific systems and using (C)LAPACK to solve them directly from c++ code, link http://www.netlib.org/lapack/ . It will be somewhere in your distibution, you might want to peruse this link, too, to get you started, depending on your experience : http://seehuhn.de/comp/linear.html

You could have a look at GSL which is more C than C++, http://sources.redhat.com/gsl/ , but is fairly easy to use and a lot more straight forward than uBLAS, imho. IIRC, it didn't have all the functionality I needed, but that was sometime ago now.

All depends what you want to do with the matrices, really.

Last edited by dakensta; 03-01-2005 at 09:43 AM.
 
Old 03-03-2005, 03:27 AM   #3
gugamare
LQ Newbie
 
Registered: Dec 2004
Location: São Paulo, Brazil
Distribution: Ubuntu 9.10
Posts: 29

Original Poster
Rep: Reputation: 15
nice tips dakensta, thanks alot!
 
  


Reply



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
firefox helper applications... al.basili Linux - Software 1 02-08-2006 05:20 PM
Get helper tools for Slackware here gnashley Slackware 3 09-12-2005 08:48 AM
Choosing Helper Application blackdragonblood Linux - Software 2 07-25-2005 07:11 AM
Need experienced helper. Terroth Linux - Networking 3 07-28-2004 06:54 AM
dns-helper? 9nine9 Linux - General 2 01-17-2003 09:24 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:07 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration