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-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to