commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilles (Resolved) (JIRA)" <>
Subject [jira] [Resolved] (MATH-685) Add method "addToEntry" to the "RealVector" interface
Date Mon, 17 Oct 2011 22:11:10 GMT


Gilles resolved MATH-685.

    Resolution: Fixed

Revision 1185398.
> Add method "addToEntry" to the "RealVector" interface
> -----------------------------------------------------
>                 Key: MATH-685
>                 URL:
>             Project: Commons Math
>          Issue Type: Wish
>            Reporter: Gilles
>            Assignee: Gilles
>            Priority: Trivial
>              Labels: api-change
>             Fix For: 3.0
> Method "addToEntry":
> {code}
> m.addToEntry(i, j, addend);
> {code}
> as a shortcut to:
> {code}
> m.setEntry(i, j, m.getEntry(i, j) + addend);
> {code}
> It has been argued (on the "dev" ML) that some functional style would be a powerful and
elegant way to implement a whole set of related functionality ("scale", "scaleAndAdd", etc.).
However some simple things (like when the "addend" depends on "i" and "j") cannot be achieved
without writing many more lines of code.
> Method "addToEntry" exists in "RealMatrix". If and when some satisfactory solution is
found in order to remove it there, "RealVector" can always be aligned with it.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message