Re: [R] matlab eigs function in R

2008-06-04 Thread Frede Aakmann Tøgersen
-Oprindelig meddelelse- > Fra: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] På vegne af kayteck_master > Sendt: 3. juni 2008 8:22 > Til: r-help@r-project.org > Emne: Re: [R] matlab eigs function in R > > > Dear Thomas > > Yes, you're right. But I'm

Re: [R] matlab eigs function in R

2008-06-03 Thread kayteck_master
Dear Thomas Yes, you're right. But I'm looking for this not only for computational cost reasons. eigen function from R has identical behavior to matlab function eig, but not to eigs. Even in matlab you can check that those function are not giving identical results. Here you have a short example

Re: [R] matlab eigs function in R

2008-06-03 Thread Thomas Lumley
Presumably the original poster was looking for a function that would compute just the largest five eigenvalues and associated vectors, because that is enormously more efficient for a large matrix than computing all of them. eigen() computes all of them. One way to compute just a few is to use

Re: [R] matlab eigs function in R

2008-06-03 Thread David Winsemius
"Jorge Ivan Velez" <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > Dear kayteck, > > Function eigen (see ?eigen) will do what you want. > > HTH, He had looked, but since eigen returns both eigenvalues and eigenvectors, and does so in a list, perhaps he needs advice about how to extrac

Re: [R] matlab eigs function in R

2008-06-03 Thread Jorge Ivan Velez
Dear kayteck, Function eigen (see ?eigen) will do what you want. HTH, Jorge On Tue, Jun 3, 2008 at 5:42 AM, kayteck_master <[EMAIL PROTECTED]> wrote: > > Hello > > Does anybody know how one can compute d largest eigenvalues/eigenvectors in > R, like in MATLAB eigs function ? eigen function co

[R] matlab eigs function in R

2008-06-03 Thread kayteck_master
Hello Does anybody know how one can compute d largest eigenvalues/eigenvectors in R, like in MATLAB eigs function ? eigen function computes all eigenvectors/eigenvalues, and they are slightly different than those generated by matlab eigs. Thanks in advance -- View this message in context: htt