Browse Source

better eigs behavior

Former-commit-id: 3d502e9ecf51adb8180c0646533c3c0c6ed4c702
Alec Jacobson 8 years ago
parent
commit
d63794315e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      include/igl/eigs.cpp

+ 2 - 0
include/igl/eigs.cpp

@@ -150,6 +150,8 @@ IGL_INLINE bool igl::eigs(
       }
     }else
     {
+      std::cout<<(S.head(i).array()-sigma).abs().maxCoeff()<<std::endl;
+      std::cout<<(S.transpose()*B*x).array().abs().transpose()<<std::endl;
       // restart with new random guess.
       cout<<"igl::eigs RESTART"<<endl;
     }