Return-Path: X-Original-To: apmail-mahout-user-archive@www.apache.org Delivered-To: apmail-mahout-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AC69F10320 for ; Tue, 7 Jan 2014 06:58:22 +0000 (UTC) Received: (qmail 40483 invoked by uid 500); 7 Jan 2014 06:58:17 -0000 Delivered-To: apmail-mahout-user-archive@mahout.apache.org Received: (qmail 40451 invoked by uid 500); 7 Jan 2014 06:58:10 -0000 Mailing-List: contact user-help@mahout.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@mahout.apache.org Delivered-To: mailing list user@mahout.apache.org Received: (qmail 40443 invoked by uid 99); 7 Jan 2014 06:58:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jan 2014 06:58:08 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ted.dunning@gmail.com designates 209.85.223.175 as permitted sender) Received: from [209.85.223.175] (HELO mail-ie0-f175.google.com) (209.85.223.175) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jan 2014 06:58:03 +0000 Received: by mail-ie0-f175.google.com with SMTP id x13so19102541ief.6 for ; Mon, 06 Jan 2014 22:57:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=4aWObyKLYlwcfLDamvu6NwK52gT8DPnkoXZxIz4/Aco=; b=wbw2VSNinVoYgn6lmZpwVIZGQbCedTY32YIsiUfj281Lb5/JRU7307BlWK0UUrdRmO G5rmEYEt5BsPt2g+bTg61SiLWwzjW1G1I5j0uuKt5ZQbgMePLptrOcWbvYtWxXBGbZ9P cHb1kYMfOgPmJOnu9bUAkst8AdOGbByTivVgLd7FtqUeQYhA/Qk8iDJHN4knqIGVggdr 5jR+juv2m4h/8Mtm0PRCpMsy1WaKB8KFCLhuw/X2KI3WTe6Q/xdvU5jx6k++VDH+kIGC hpIzbuiBGE+CVT9TZ6ybTvyPBjRriJ1/5JG4VV1z9/JHF1+/V57oQaoCVn9Q76AcdKMI f+OQ== X-Received: by 10.50.118.69 with SMTP id kk5mr9009361igb.26.1389077863119; Mon, 06 Jan 2014 22:57:43 -0800 (PST) MIME-Version: 1.0 Received: by 10.64.87.231 with HTTP; Mon, 6 Jan 2014 22:57:13 -0800 (PST) In-Reply-To: References: From: Ted Dunning Date: Mon, 6 Jan 2014 22:57:13 -0800 Message-ID: Subject: Re: eigenvectors and eigenvalues of a matrix To: "user@mahout.apache.org" Content-Type: multipart/alternative; boundary=e89a8f64338298c20804ef5be4e8 X-Virus-Checked: Checked by ClamAV on apache.org --e89a8f64338298c20804ef5be4e8 Content-Type: text/plain; charset=UTF-8 The order of the singular values and vectors should tell you. For others who might be curious, the singular value decomposition breaks a matrix A into three factors A = U S V' Both U and V are orthonormal so that U' U = I and V' V = I. S is diagonal. An eigenvalue decomposition decomposes a square matrix into two parts, one repeated A = U S U* If A is symmetric, then these are real matrices and U* = U'. If A is symmetric, we can also decompose it using a Cholesky transformation A = R' R Where R is upper (right) triangular. We can then decompose R with SVD. This gives us: A = R' R R = U S V' R' R = (U S V')' (U S V') = V S U' U S V' = V S^2 V' a nice convenience is that S^2 is also diagonal and contains the elements of S, just squared. So the answer for Tharindu is that the elements of V are not changed or re-ordered and neither are the elements of S. On Mon, Jan 6, 2014 at 10:22 PM, Tharindu Rusira wrote: > Hi, > I am currently working with SingularValueDecomposition class and I like to > clarify the following. > > My goal is to find eigenvalues and corresponding eigenvectors of a matrix. > I know how to calculate eigenvalues and eigenvectors using svd but is there > a way to keep track of which eigenvector corresponds to which eigenvalue? > > Thanks, > -- > M.P. Tharindu Rusira Kumara > > Department of Computer Science and Engineering, > University of Moratuwa, > Sri Lanka. > +94757033733 > www.tharindu-rusira.blogspot.com > --e89a8f64338298c20804ef5be4e8--