[
https://issues.apache.org/jira/browse/MATH-1043?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13798371#comment-13798371
]
Phil Steitz commented on MATH-1043:
-----------------------------------
I agree with Thomas on this. Maybe we should play ping-pong indefinitely with
this issue ;)
More seriously, I can see how these could be useful little methods, but more
[lang]-like than [math]-like. To get less flaky on why:
1. lang's math features are easy convenience methods that don't do anything
deep mathematically but provide nice shorthand for common stuff (like pretty
much everything else in lang). So this qualifies.
2. I have sympathy but no burning desire and a little dread over extending all
of the double[]-taking methods in [math] to var args equivalents. This has
never been a demand from [math] users and once we start down the path, we end
up with quite a bit of new code to support.
So basically, I am +0 to add this stuff to [lang], -0 to add it to [math]
> MathUtils.sum() method to add together a bunch of numbers.
> ----------------------------------------------------------
>
> Key: MATH-1043
> URL: https://issues.apache.org/jira/browse/MATH-1043
> Project: Commons Math
> Issue Type: New Feature
> Environment: Any
> Reporter: Matt Bishop
> Priority: Minor
>
> I find myself doing sums frequently with a variety of numbers. It would be
> nice if MathUtils had a method like this:
> int add(int... numbers);
--
This message was sent by Atlassian JIRA
(v6.1#6144)