commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Neidhart (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MATH-1043) MathUtils.sum() method to add together a bunch of numbers.
Date Fri, 18 Oct 2013 10:34:44 GMT

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

Thomas Neidhart commented on MATH-1043:
---------------------------------------

{quote}
It depends from what angle you see this feature.
The purpose may well be that people who want this feature should use CM rather than CL.
It is (too obviously?) a mathematical operation.
Besides, this is rightly going to be in a "XxxUtils" class, where new potential users might
want too look for this kind of features.
{quote}

What I doubt is that any potential new user will add a dependency to commons-math for a feature
like this. Did you take a look recently at the jar size of CM? It is > 1MB so it can not
be considered to be a light-weight component anymore imho, and thus I think a feature like
this would be much more suitable for CL as almost everybody has already a dependency to it
in his/her project anyway.

> 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)

Mime
View raw message