Article View: sci.math.num-analysis
Article #869Re: SVD implementation
From: G. W. Stewart
Date: Fri, 25 Dec 1992 14:00
Date: Fri, 25 Dec 1992 14:00
25 lines
1653 bytes
1653 bytes
In article <1992Dec24.110843.29860@cv.ruu.nl> ger@cv.ruu.nl (Ger Timmens) writes:
#I want the singular value decomposition of a 3x3 matrix.
#I currently use the algorithm of numerical recipes.
#However I think a much simpler algorithm should be out there.
#
#Any pointers ?
You've run into a situation that frustrates a lot of people. In
principle, it should be possible to solve eigenvalue (or singular
value) problems of order 2, 3, and 4 directly using the formulas for
solving quadratic, cubic, and quartic equations. In practice, though,
the complexity of the formulas makes the effort practical only for 2x2
problems. And even then the difficulties are great. When Charlie Van
Loan (of Golub and Van Loan fame) was a graduate student he produced a
forty page manuscript entitled "An Algorithm for the Generalized
Matrix Eigenvalue Problem {$Ax=\lambda Bx$} for the Important Case
{$N=2$}", and it was none too short. You will probably do well to
stick with general code.
Not that I recommend the Numerical Recipes code. I've been told that
it is a modification of the LINPACK code, the modifications causing
it to fail in some cases. I would stick with the LINPACK or LAPACK
code which is available on netlib.
Pete Stewart
Technical Details
Message-ID:
<63058@mimsy.umd.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!mimsy!stewartReferences:
<1992Dec24.110843.29860@cv.ruu.nl>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!mimsy!stewart From: stewart@cs.umd.edu (G. W. Stewart) Newsgroups: sci.math.num-analysis Subject: Re: SVD implementation Message-ID: <63058@mimsy.umd.edu> Date: 25 Dec 92 14:00:16 GMT References: <1992Dec24.110843.29860@cv.ruu.nl> Sender: news@mimsy.umd.edu Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 26