Re: Problem with DGESVD - Singular Value Decomposition (LAPACK)



On Apr 5, 11:56 am, Udo Grabowski <udo.grabow...@xxxxxxxxxx> wrote:
mich...@xxxxxxxxxxxxxxxx wrote:
For the matrix

a(1,:)=(/2,5,3,9/)
a(2,:)=(/1,1,9,1/)
a(3,:)=(/1,-1,1,251/)

calling DGESVD with argument JOBU='N' and JOBVT='N' the Compaq Visual
Fortran compiler goes into an infinite loop, while the g95 compilers
returns division by zero.

calling DGESVD with arguments JOBU='A' and JOBVT='N' the Compaq
Visual
Fortran compiler returns log: -SING error, while the g95 compiler
returns the correct singular values that also also match MATLAB
function svd results.

Anyone has experience with the DGESVD routine or any ideas?

Hmm, I think I was the one that recommended using it, so I feel
responsible for
answering here...

I assume A is declared as double precision. Double and triple check the
M and N ,
LDA, LDU and LDVT parameters and read four times through the function
description,
I always get those parameters wrong on the first try...

Yes, and once you understand the calling conventions, write a Fortran
95 wrapper that is easy to use and safe (checking consistency of
dimensions). For Lapack, this has already been done in Lapack95
http://www.netlib.org/lapack95/ .


.



Relevant Pages

  • Re: Problem with DGESVD - Singular Value Decomposition (LAPACK)
    ... Fortran compiler goes into an infinite loop, while the g95 compilers ... function svd results. ... Check your declarations. ...
    (comp.lang.fortran)
  • Problem with DGESVD - Singular Value Decomposition (LAPACK)
    ... calling DGESVD with argument JOBU='N' and JOBVT='N' the Compaq Visual ... Fortran compiler goes into an infinite loop, while the g95 compilers ...
    (comp.lang.fortran)
  • Problem with DGESVD - Singular Value Decomposition (LAPACK)
    ... Fortran compiler goes into an infinite loop, while the g95 compilers ... calling DGESVD with arguments JOBU='A' and JOBVT='N' the Compaq Visual ...
    (sci.math.num-analysis)
  • Re: Who uses clapack?
    ... On the Mon, 13 Dec 2004 03:49:42 GMT, Jentje Goslinga wrote: ... > real work rather than work on my hobby projects. ... > Lapack when they can extract the required code from Lapack ...
    (sci.math.num-analysis)
  • Re: LAPACK
    ... > what do I have to do for installing LAPACK on a pc with windows XP??? ... You need a Fortran compiler, unless you want to use CLAPACK. ... Get LAPACK from netlib: http://netlib.org/lapack/index.html. ...
    (sci.math.num-analysis)