commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilles Sadowski <gil...@harfang.homelinux.org>
Subject Re: [math] break up MathUtils?
Date Mon, 03 Oct 2011 20:59:31 GMT
On Mon, Oct 03, 2011 at 05:42:15PM +0200, Mikkel Meyer Andersen wrote:
> 2011/10/3 Phil Steitz <phil.steitz@gmail.com>:
> > I agree with Gilles' recent comment that this class is bloated.  Any ideas on how
to break it up?  Now would be a good time to so it.
> >
> > Phil
> One way would be to divide it into DiscreteUtils (int's and long's)
> and ContinuousUtils (float's and double's).

I'd rather divide it along conceptual lines. E.g.
  Arithmetics (for "addAndCheck")
  Precision (for "equals", "compare")
  Binomial (for "binomialCoefficient")
  MathArrays (for "linearCombination", "distance", "safeNorm", ...)
  Function (for "pow", "cosh", ...) [But maybe those should go in FastMath].


Best regards,
Gilles

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message