commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luc Maisonobe <...@spaceroots.org>
Subject [math] discussing ebe like functions for MathArrays
Date Sun, 05 Jul 2015 07:44:49 GMT
Hi all,

A few days ago, several pull requests arrived from github
(<https://github.com/apache/commons-math/pull/6>,
<https://github.com/apache/commons-math/pull/7>,
<https://github.com/apache/commons-math/pull/8> and
<https://github.com/apache/commons-math/pull/9>). They
concern ebe-like functions for MathArrays.

I was ready to commit them, but have second thoughts now. Wouldn't it
be better to have rather an API like:

  MathArrays.map(UnivariateFunction f, double[] a)

and

  MathArrays.map(BivariateFunction f, double[] a, double[] b)

It would avoid adding a bunch of functions.

There were already concerns about inflating API in RealVector
a few years ago and I would prefer not doing again the same errors.

What do you think?

Luc

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


Mime
View raw message