Advertisement
niharsarangi

eigsh

Jun 16th, 2012
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.60 KB | None | 0 0
  1. ##I have a graph laplacian, for which I need to find out the largest 'k' eigen values and #eigen vectors. I am using something like this :-
  2. # L= laplacian matrix.
  3. ##########################################################################################
  4. eigVal,eigVectors = eigsh(L, nk,  which='LA')
  5.  
  6. ##This is giving me approximately correct results, but something's going wrong and I am #getting eig values slightly greater than 1 (say 1.05). In my case the eigen values are upper #bounded by 1. when using MATLAB and other platforms I am getting desired results.
  7.  
  8. ## What am I doing wrong here??
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement