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

svds implementation #4441

Closed
ViralBShah opened this issue Oct 6, 2013 · 4 comments
Closed

svds implementation #4441

ViralBShah opened this issue Oct 6, 2013 · 4 comments
Labels

Comments

@ViralBShah
Copy link
Member

It seems that the way octave implements svds is as follows:

(V, s) = eigs ([spzeros(m,m), b; b', spzeros(n,n)], b_k, b_sigma, b_opts);

If you have the octave repo, you can see the implementation in octave-3.6.4/scripts/sparse/svds.m.
I see some pre and post processing too.

Should we go ahead this way for our svds implementation too?

@jiahao
Copy link
Member

jiahao commented Jan 3, 2014

I'm pretty sure this trick uses the relationship between singular values as "square roots" of the eigenvalues, and as such would be numerically unstable in that the computation works with a matrix that has a condition number which is roughly squared compared to the original matrix. (In the same vein as why normal equation methods like CGNE aren't currently favored in iterative methods)

Given that IterativeSolvers.jl now offers the Golub-Kahan-Lanczos method for computing singular values via svdvals_gkl(), I think we should close this and work on providing the full SVD factorization (i.e. return the singular vectors also) from IterativeSolvers.

@jiahao jiahao closed this as completed Jan 3, 2014
@ViralBShah
Copy link
Member Author

Agree.

@ViralBShah
Copy link
Member Author

On second thoughts, it would be nice to have a working svds implementation, which could be replaced later.

@ViralBShah
Copy link
Member Author

Related: #6610

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

No branches or pull requests

2 participants