February 22nd, 2003, 3:40 am
A text book example. Try to get LU on the following 2x2 matrix a, a(1,1) = eps, a(1,2) = 1, a(2,1) = 1, a(2,2) = 1,WITHOUT pivoting, in computer. The eps is as small as 1.0E-20. After you decomp, try to recover a. Do you succeed?Most of the time, you probably LU on matrices of which diagonal elements dominate others.If you know this is all you're going to do, then go for it.If you have to automate your code so that it works for general non-singular matrices, do pivoting or partial pivoting, unless youdon't mind waking up in the middle of the night.