forum.alglib.net

ALGLIB forum
It is currently Fri Mar 29, 2024 1:50 pm

All times are UTC


Forum rules


1. This forum can be used for discussion of both ALGLIB-related and general numerical analysis questions
2. This forum is English-only - postings in other languages will be removed.



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: bad matrix conditions
PostPosted: Mon Oct 04, 2010 12:51 pm 
Offline

Joined: Mon Oct 04, 2010 12:40 pm
Posts: 1
Hello, I'm trying to solve an equation of the Form A*m = d with A [18 rows, 11 columns], where d is given and m is searched. In order to solve this, the form (A^T * A) ^-1 * A^T * d is used. As my results haven't been sufficient, I checked my calculation in matlab and recognized that Matlab distinguishes between inv(A^T * A) * A^T and (A^T*A) \ A^T. Actually both should lead to the same result...but it is mentioned that using inv(X)*B is more inaccurate in comparison to A\b. By using (A^T*A) \ A^T I got better results, too. Is it possible to "emulate" the calculation of matlab with alglib? Additionally I have to say that I don't know how both ways are realized in matlab.

Thanks and regards,
Peter


Top
 Profile  
 
 Post subject: Re: bad matrix conditions
PostPosted: Mon Oct 04, 2010 1:39 pm 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 903
Well, it is hard to emulate internals of closed source project - they don't disclose algorithms they used.

If you want to get better precision when solving under/overdetermined linear system, you can use RMatrixSolveLS function from Solvers subpackage. It can solve both underdetermined and overdetermined systems, and it features iterative improvement, which can significantly improve precision of your results.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 97 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group