[ 
https://issues.apache.org/jira/browse/MATH-643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13081493#comment-13081493
 ] 

Arne Plöse commented on MATH-643:
---------------------------------

OK I am comming from matlab|octave I want the operator ".+" implemented in 
commons.math.
After the naming convention in octave this is a element by element addition.

Speaking: "Add d to each entry of v", this should be visible in the name of the 
method like ebeAdd(double d)|ebeAdd(double[] d).

You, viewing it from perl, say: "Map the operator + with operand d to each 
entry of v".
So, why do I map this, if I want a simple addition? - map is confusing here for 
newcomers or people comming from matlab.

Seeing no other comments, this looks like a problem only to me.
So lets do not waste more time on this ether let it open or close it with "Wont 
Fix".

Nevertheless I think usability suffers from this non consistent naming.

> 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öse
>            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


Reply via email to