bug-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gsl] Eigen vector problem


From: Patrick Alken
Subject: Re: [Bug-gsl] Eigen vector problem
Date: Fri, 30 May 2014 09:02:47 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

Can you provide a simple program which demonstrates the problem? You didn't even list your A and B matrices

On 05/30/2014 01:47 AM, belwafi kais wrote:
Hello,



I try to implement the eigenvector using GSL library. To do this I use
gsl_eigen_genv function. And I try to compare the output of this function
with the output of Matbal function ( [c d]=eig(A,B), A and B are identical
matrix, all of these element is one; A=ones(4,4,)). I get two different
results:





Eigenvector

Eigen value

Matlab result

c =

     -1     1     0     0

      0    -1     0     0

      0     0     1     0

      0     0     0     1



d =

      1     0     0     0

      0     0     0     0

      0     0   NaN     0

      0     0     0   NaN



GSL result

c =

  -1    -0    -0    -0

  0.7  -1.1 -0.7  0

  0      0     1      0

  0      0     0      1



d =

      1     0     0       0

      0     inf   0       0

      0      0   -NaN    0

      0     0     0  -NaN





Please can you give me any tips to correct this problem?



Thank you.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]