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
|