Problem with Jacobi??


barryj21
09-19-2003, 06:56 PM
Hi All

I am trying to find the eigenvectors and eigenvalues of arbitrary real symmetric matrices using the jacobi function.

I noticed and applied the bug fixes in the forum, but I still get segmentation errors. For example, attempting to run the code on the following matrix bails out.


A = [
1.068920 0.263645 -0.756156 0.459250 0.122760 -0.063567
0.263645 0.262791 -0.389868 0.138175 0.068227 -0.249158
-0.756156 -0.389868 1.014119 -0.251996 0.178684 0.285708
0.459250 0.138175 -0.251996 1.139475 0.362660 0.105770
0.122760 0.068227 0.178684 0.362660 1.509849 -0.012507
-0.063567 -0.249158 0.285708 0.105770 -0.012507 0.308588]

Anyone else seen this error, or can they get this matrix work for them?

Cheers

Barry

xllo
10-22-2003, 09:02 AM
I have a problem with Jacobi algorithm too. Depending of the matrix (always real and symetric matrix) the results are bad, and easy exemple is when you try to search the eigenvectors of the matrix:
A=
1 1 1 1 1 1
1 1 1 1 1 1
1 1 1 1 1 1
1 1 1 1 1 1
1 1 1 1 1 1
1 1 1 1 1 1

some vectors are not ok. Anyone knows why?