Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3BC5D8665 for ; Mon, 8 Aug 2011 20:23:50 +0000 (UTC) Received: (qmail 16713 invoked by uid 500); 8 Aug 2011 20:23:49 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 16643 invoked by uid 500); 8 Aug 2011 20:23:49 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 16635 invoked by uid 99); 8 Aug 2011 20:23:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Aug 2011 20:23:48 +0000 X-ASF-Spam-Status: No, hits=-2000.8 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Aug 2011 20:23:47 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 331F3B2011 for ; Mon, 8 Aug 2011 20:23:27 +0000 (UTC) Date: Mon, 8 Aug 2011 20:23:27 +0000 (UTC) From: =?utf-8?Q?Arne_Pl=C3=B6se_=28JIRA=29?= To: issues@commons.apache.org Message-ID: <88046562.17635.1312835007206.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1412690642.14813.1312731207444.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (MATH-643) Rename RealVector.map* to RealVector.ebe* (mapAdd(...) to ebeAdd(...) and mapAddToSelf(...) to ebeAddToSelf(...) for instance MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MATH-643?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D130811= 67#comment-13081167 ]=20 Arne Pl=C3=B6se commented on MATH-643: --------------------------------- @perl http://perldoc.perl.org/functions/map.html says that map evaluates a BLOCK or EXPR given to map. This is what RealVect= or.map(...) does - nothing wrong with this. But mapAdd(double d) is a simple addition of d to each element of the vecto= r - I would say name this mapping is wrong in this case. {code}AbstractRealvector.mappAddToSelf(double d){code} uses internally mapp= ing so this may be OK - but I cant see any benefit from this. I think the reason for ebe and map is only dotProduct|outherProduct|ebeMult= iply to make clear what the methods are doing. By the way add(double[] v] should be renamend to ebeAdd(double[] v) to be c= onsistent with the naming scheme. > Rename RealVector.map* to RealVector.ebe* (mapAdd(...) to ebeAdd(...) and= mapAddToSelf(...) to ebeAddToSelf(...) for instance > -------------------------------------------------------------------------= ---------------------------------------------------- > > Key: MATH-643 > URL: https://issues.apache.org/jira/browse/MATH-643 > Project: Commons Math > Issue Type: Improvement > Affects Versions: 3.0 > Reporter: Arne Pl=C3=B6se > Priority: Minor > > I think the map* methods have historical names. Today I would prefer ebe = as prefix like ebeMultiply(...). > This would describe the methods better from a users view. > If this is a valid issue, I could provide a patch. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira