commons-issues mailing list archives

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


Thomas Neidhart commented on MATH-1043:

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.

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

View raw message