Return-Path: Delivered-To: apmail-incubator-hama-dev-archive@minotaur.apache.org Received: (qmail 59961 invoked from network); 8 May 2009 09:52:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 May 2009 09:52:17 -0000 Received: (qmail 24402 invoked by uid 500); 8 May 2009 09:52:17 -0000 Delivered-To: apmail-incubator-hama-dev-archive@incubator.apache.org Received: (qmail 24372 invoked by uid 500); 8 May 2009 09:52:17 -0000 Mailing-List: contact hama-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hama-dev@incubator.apache.org Delivered-To: mailing list hama-dev@incubator.apache.org Received: (qmail 24362 invoked by uid 99); 8 May 2009 09:52:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 May 2009 09:52:17 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 May 2009 09:52:06 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 96CE4234C044 for ; Fri, 8 May 2009 02:51:45 -0700 (PDT) Message-ID: <1076923729.1241776305616.JavaMail.jira@brutus> Date: Fri, 8 May 2009 02:51:45 -0700 (PDT) From: "Edward J. Yoon (JIRA)" To: hama-dev@incubator.apache.org Subject: [jira] Commented: (HAMA-170) Implementation of Matrix.Norm In-Reply-To: <391492486.1236850495208.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HAMA-170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12707294#action_12707294 ] Edward J. Yoon commented on HAMA-170: ------------------------------------- Oh, Thanks. As you said, "The 1-norm is obtained by finding the sum of the absolute value of all the elements in each column of the matrix. The largest of these sums is the 1-norm. In mathematical terms, the 1-norm is simply the maximum absolute column sum of the matrix." So, if A = {{1, 3}, {2, 4}} then ||A||1 = max(3, 7) = 7 Comments should be fixed. But, fortunately 1-Norm was correctly implemented as below. 1-NormMapper: for(Map.Entry e : value.entrySet()) { rowSum += Math.abs(((DoubleEntry) e.getValue()).getValue()); } 1-NormReducer: while (values.hasNext()) { max = Math.max(values.next().get(), max); } > Implementation of Matrix.Norm > ----------------------------- > > Key: HAMA-170 > URL: https://issues.apache.org/jira/browse/HAMA-170 > Project: Hama > Issue Type: Improvement > Components: implementation > Affects Versions: 0.1.0 > Reporter: Edward J. Yoon > Assignee: Edward J. Yoon > Fix For: 0.1.0 > > > enum Norm { > /** Maximum absolute row sum */ > One, > /** The root of sum of the sum of squares */ > Frobenius, > > /** Largest entry in absolute value */ > Infinity, > > /** Largest entry in absolute value. Not a proper matrix norm */ > Maxvalue > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.