MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

LU Decomposition w/o Pivoting

  • To: mathgroup at
  • Subject: [mg91711] LU Decomposition w/o Pivoting
  • From: Benjamin Reedlunn <breedlun at>
  • Date: Sat, 6 Sep 2008 02:07:07 -0400 (EDT)


I am trying to calculate the signs of the eigenvalues of a bunch of  
moderately large matrices (thousand by thousand), which takes a long  
time.  It has come to my attention that the diagonal terms in a LU  
decomposition have the same signs as the eigenvalues.  So I'm hoping  
that the LU decomposition is faster than calculating the actual  
eigenvalues.  I tried testing this out using mathematica's built in  
function LUDecomposition[] and after a large amount of monkeying  
around, I realized the signs of the diagonal terms only match the  
eigenvalues if there is no pivoting employed.  Unfortunately, I cannot  
figure out how to turn off pivoting in LUDecomposition[].  While I am  
sure I could write my own LU decomposition function, I'm also sure it  
would not be nearly as elegant and computationally efficient as the  
built in function.  So does anyone know how to turn off  
LUDecomposition[] or have optimized code to perform a LU decomposition?

-Ben Reedlunn

  • Prev by Date: Trying to speed up a function
  • Next by Date: How can I do a "grep -v" equivalent in Import[]?
  • Previous by thread: Re: Trying to speed up a function
  • Next by thread: Re: LU Decomposition w/o Pivoting