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] New method: "addToEntry" in "RealVector"
Date Thu, 18 Aug 2011 11:13:25 GMT
On Wed, Aug 17, 2011 at 04:44:22PM -0700, Ted Dunning wrote:
> Are you going to add addAndScale and all the other gazillion common mutators
> as well?

I'd prefer not.  ;-)

> Or should there just be a functional style interface where you say [...]

Cf. "AbstractRealVector.java", line 508 (as already pointed out by
S├ębastien).

However this is not what I need. The purpose is to have a shortcut for
---CUT---
for (int i = 0; i < n; i++) {
  final double value = <...>; // Not a constant.
  v.setEntry(i, v.getEntry(i) + value);
}
---CUT---


Gilles

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


Mime
View raw message