[
https://issues.apache.org/jira/browse/MATH-643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13081273#comment-13081273
]
Gilles commented on MATH-643:
-----------------------------
{quote}
[...] mapAdd(double d) is a simple addition of d to each element of the vector
- I would say name this mapping is wrong in this case.
{quote}
It is exactly the Perl definition which you quoted earlier:
{quote}
[...] says that map evaluates a BLOCK or EXPR given to map
{quote}
{noformat}
Perl Java
map {$_ + d } @v v.mapAdd(d)
{noformat}
Sorry, but I don't understand what is your problem with this.
> 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