DSPRelated.com
Forums
Online · Live + on demand
February 9-11, 2027
Price goes up Jan 1: register now to lock in today's rate
Register Now →

numerical analysis question: inverses and LU decomposition

Started by Randy Yates ●October 10, 2006
Gordon Sande <g.sande@worldnet.att.net> writes:
> [...] > There is the famous quote that "Premature optimization is the root of all evil" > attributed to Knuth but he was just quoting earlier sources. You are jumping > to the optimization and missing the simplicity. > [...] > Exhibiting the explicit inverses of the triangular factors is possible and > they can then be multiplied. The result will only be of use for illustration.
Unless you identify the algorithm and evaluate the computuational complexity, how can you know that computing A^{-1} and evaluating A{-1} * b efficient than front-back substitution using GE? What exactly is premature here? -- % Randy Yates % "She's sweet on Wagner-I think she'd die for Beethoven. %% Fuquay-Varina, NC % She love the way Puccini lays down a tune, and %%% 919-577-9882 % Verdi's always creepin' from her room." %%%% <yates@ieee.org> % "Rockaria", *A New World Record*, ELO http://home.earthlink.net/~yatescr
Randy Yates <yates@ieee.org> writes:

> Gordon Sande <g.sande@worldnet.att.net> writes: >> [...] >> There is the famous quote that "Premature optimization is the root of all evil" >> attributed to Knuth but he was just quoting earlier sources. You are jumping >> to the optimization and missing the simplicity. >> [...] >> Exhibiting the explicit inverses of the triangular factors is possible and >> they can then be multiplied. The result will only be of use for illustration. > > Unless you identify the algorithm and evaluate the computuational > complexity, how can you know that computing A^{-1} and evaluating A{-1} * b > efficient than front-back substitution using GE? > > What exactly is premature here?
Of course if you find A^{-1} by solving AX = I using PLU decomposition, then it's obvious. I was referring to other methods for finding A^{-1}. -- % Randy Yates % "So now it's getting late, %% Fuquay-Varina, NC % and those who hesitate %%% 919-577-9882 % got no one..." %%%% <yates@ieee.org> % 'Waterfall', *Face The Music*, ELO http://home.earthlink.net/~yatescr
On 2006-10-10 12:11:36 -0300, Randy Yates <yates@ieee.org> said:

> Randy Yates <yates@ieee.org> writes: > >> Gordon Sande <g.sande@worldnet.att.net> writes: >>> [...] >>> There is the famous quote that "Premature optimization is the root of all evil" >>> attributed to Knuth but he was just quoting earlier sources. You are jumping >>> to the optimization and missing the simplicity. [...] >>> Exhibiting the explicit inverses of the triangular factors is possible and >>> they can then be multiplied. The result will only be of use for illustration. >> >> Unless you identify the algorithm and evaluate the computuational >> complexity, how can you know that computing A^{-1} and evaluating A{-1} * b >> efficient than front-back substitution using GE? >> >> What exactly is premature here? > > Of course if you find A^{-1} by solving AX = I using PLU decomposition, > then it's obvious. I was referring to other methods for finding A^{-1}.
Gauss-Jordan, Crout, Dolittle, etc, etc have been worked over for at least a century and are all just different bookkeeping schemes for the same algebra. Try consulting multiple classical numerical analysis books for the variants. It is only complicated if you try to rush it. There is the sign "The hurriered I get, the behinder I become" that has much wisdom.
Gordon Sande <g.sande@worldnet.att.net> writes:

> On 2006-10-10 12:11:36 -0300, Randy Yates <yates@ieee.org> said: > >> Randy Yates <yates@ieee.org> writes: >> >>> Gordon Sande <g.sande@worldnet.att.net> writes: >>>> [...] >>>> There is the famous quote that "Premature optimization is the root of all evil" >>>> attributed to Knuth but he was just quoting earlier sources. You are jumping >>>> to the optimization and missing the simplicity. [...] >>>> Exhibiting the explicit inverses of the triangular factors is possible and >>>> they can then be multiplied. The result will only be of use for illustration. >>> Unless you identify the algorithm and evaluate the computuational >>> complexity, how can you know that computing A^{-1} and evaluating A{-1} * b >>> efficient than front-back substitution using GE? >>> What exactly is premature here? >> Of course if you find A^{-1} by solving AX = I using PLU >> decomposition, then it's obvious. I was referring to other methods >> for finding A^{-1}. > > Gauss-Jordan, Crout, Dolittle, etc, etc have been worked over for at least > a century and are all just different bookkeeping schemes for the same algebra. > Try consulting multiple classical numerical analysis books for the variants.
I've looked in @BOOK{burden, title = "{Numerical Analysis}", author = "Richard~L.Burden, and J.~Douglas~Faires, and Albert~C.~Reynolds", publisher = "Prindle, Weber and Schmidt", edition = "second", year = "1981"} @BOOK{demmel, title = "{Applied Numerical Linear Algebra}", author = "{James~W.~Demmel}", publisher = "SIAM", year = "1997"} @BOOK{higham, title = "{Accuracy and Stability of Numerical Algorithms}", author = "{Nicholas~J.~Higham}", publisher = "SIAM", year = "1996"} Are these techniques covered sufficiently in one/all of these? So the short answer to my question of,"Is there a more computationally efficient way to compute a matrix inverse than solving the system AX=I for X using GE and forward/back substitution" is "No?"
> It is only complicated if you try to rush it. There is the sign "The hurriered > I get, the behinder I become" that has much wisdom.
Yeah, I just experienced that - homework is a week overdue and the more I worked harder on it, the fuzzier it got. -- % Randy Yates % "Watching all the days go by... %% Fuquay-Varina, NC % Who are you and who am I?" %%% 919-577-9882 % 'Mission (A World Record)', %%%% <yates@ieee.org> % *A New World Record*, ELO http://home.earthlink.net/~yatescr
On 2006-10-10 20:35:55 -0300, Randy Yates <yates@ieee.org> said:

> So the short answer to my question of, "Is there a more computationally > efficient > way to compute a matrix inverse than solving the system AX=I for X using GE and > forward/back substitution" is "No?"
The Strassen methods are n^log_2(7) ~ n^2.71 which beats n^3 but the coefficients are large and numerical stability is questionable. Pan has methods with lower exponents of about 2.3. Such methods are typically not practical but are of interest for complexity specialists. Practical methods for realistic size are still Gaussian elimination in one of its many guises, i.e. ultimately LU decomposition. Numerical stability is usually a more serious issue than small scale details of the complexity coefficient of GE. Special structure can be used to falisfy almost any general statement which leads to much confusion. The are many special structures to feed the confusion. Real large problems will be sparse which is a whole topic by itself. Solving some large problems may be done by approximate methods which are not GE. Explicit inverses of (large) matrices are rarely wanted.