Google Answers Logo
View Question
 
Q: Sparse Matrices and Linear Systems ( No Answer,   2 Comments )
Question  
Subject: Sparse Matrices and Linear Systems
Category: Computers > Software
Asked by: salient-ga
List Price: $25.00
Posted: 29 Aug 2005 12:33 PDT
Expires: 28 Sep 2005 12:33 PDT
Question ID: 561858
I'm looking for a sparse matrix library that has a C or C++ interface,
preferrably C++ that can perform a QR decomposition using the
Householder transform and subsequently solve the linear system:

Ax = b;
x = inv(A)b;

If A is sparse, I will get quicker solution using the QR transform:

A = QR
x = inv(R)*(Q'*b), where ' represents the transpose

Matrix A is m rows by n columns and m >> n.  It must also be linked
with modules built with MSVC++ 7.0 or 8.0, preferrably 8.0.

I've looked at GNU's scientific library (gsl), Intel's MKL, TNT, MTL
with unsatisfying results.

Basically, I want to mimic the behavior that I see with Matlab.  If
Matrix A is specified as a non-sparse matrix, the computation time is
quite slow for the problem I'm trying to solve.  There is a dramatric
speed-up when A is converted to a sparse matrix.
Answer  
There is no answer at this time.

Comments  
Subject: Re: Sparse Matrices and Linear Systems
From: techtonix-ga on 03 Sep 2005 10:45 PDT
 
Have you seen these libraries?
http://flens.sourceforge.net/
http://math.nist.gov/sparselib++/ and http://math.nist.gov/spblas/
Subject: Re: Sparse Matrices and Linear Systems
From: salient-ga on 08 Sep 2005 10:08 PDT
 
I didn't know about FLENS.  While interesting, it doesn't have a
sparse QR decomposition.

I have looked at sparselib++ briefly.  It seems to have a nice class
library for sparse matrices.  The main drawback is the lack of linear
system solvers.

I took a look at the NIST sparse blas library.  It seems to have a few
more functions that the sparse blas library implemented by Intel's MKL
library.  I will look at it further.

One other stipulation that I have is that the object code that I produce 
must be redistributable without license restrictions such as GPL.

Thanks

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy