Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SymEigsSolver misses 1 eigen value #133

Open
linaelf opened this issue Oct 29, 2021 · 1 comment
Open

SymEigsSolver misses 1 eigen value #133

linaelf opened this issue Oct 29, 2021 · 1 comment

Comments

@linaelf
Copy link

linaelf commented Oct 29, 2021

I used SymEigsSover to calculate k smallest eigen values as below code.

Spectra::SymEigsSolver<SparseSymMatProd<double>> eigs(op, k, ncv);
eigs.init();
int nconv = eigs.compute(SortRule::SmallestAlge, 1000, 1e-10, SortRule::SmallestAlge);

Here's the input matrix data: Matrix(834x834, delimited with space)

Seems diffrent k produces different eigen values for matrix. One value -1 is missing when k=20.
k=20, ncv=50, eigen values are:
-1
-1
-0.991601
-0.972826
-0.964733
-0.957468
-0.953686
-0.951441
-0.94711
-0.931136
-0.929913
-0.926608
-0.914001
-0.904855
-0.900097
-0.882461
-0.875527
-0.859567
-0.812831
-0.811643

k=25, ncv=50, eigen values are:
-1
-1
-1
-0.991601
-0.972826
-0.964733
-0.957468
-0.953686
-0.951441
-0.94711
-0.931136
-0.929913
-0.926608
-0.914001
-0.904855
-0.900097
-0.882461
-0.875527
-0.859567
-0.812831
-0.811643
-0.628877
-0.404174
-0.397855
-0.390249

@yixuan
Copy link
Owner

yixuan commented Apr 6, 2022

Sorry for being late, but it seems the link to the matrix file is now invalid. Could you share the file again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants