LU Decomposition

1,312 views
Skip to first unread message

Luke Setzer

unread,
Feb 8, 2010, 2:54:29 PM2/8/10
to tinspire
I keep running the LU decomposition function on the TI-Nspire CAS
software and the results differ from those in the textbook. I cannot
understand the function of the p matrix in the result. Before I post
a lengthy example, perhaps someone can enlighten me in a few words.

Nelson Sousa

unread,
Feb 8, 2010, 5:56:49 PM2/8/10
to tins...@googlegroups.com
The P matrix is a permutation matrix. What it does is switch lines (I
don't know what are the criteria to switch lines). Check your
reference guide, it will probably tell you in greater detail what do
those matrices mean.

Cheers,
Nelson

> --
> To post to this group, send email to tins...@googlegroups.com
> To unsubscribe send email to tinspire+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com.au/group/tinspire?hl=en-GB?hl=en-GB
> The tns documents shared by group members are archived at
> http://lafacroft.com/archive/nspire.php

Wayne

unread,
Feb 8, 2010, 6:29:26 PM2/8/10
to tinspire
With respect to obtaining a different answer than the textbook, the LU
decomposition is not unique in general; so under some circumstances
different answers may be obtained depending on the method of
calculation. I do not remember the conditions on the matrix for
uniqueness of its decomposition but I think all the cofactors of the
main diagonal have to be non-zero. Don't quote me on that, but the
exact conditions should be in a linear algebra textbook (at least the
older ones).
Wayne

Luke Setzer

unread,
Feb 9, 2010, 11:29:41 AM2/9/10
to tinspire
Okay, so I was able to write a small function program that swaps rows
of L based on P so that LU equals the original matrix. Now I just
need to find a way to force the LU function to give me the same
answers as the textbook. Meh!

Wayne

unread,
Feb 9, 2010, 5:47:07 PM2/9/10
to tinspire
There is no need for a separate function, just multiply by P inverse
since (P inverse)*L*U is the original matrix. Of course (P inverse)*L
is no longer lower triangular in the general case.
Wayne

Luke Setzer

unread,
Feb 10, 2010, 8:22:53 AM2/10/10
to tinspire
That was very helpful! Thanks! Now if someone could please explain
why the calculator does this rather than simply return a straight L
and U, that would help even more.
Reply all
Reply to author
Forward
0 new messages