Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CE4F6808E for ; Thu, 18 Aug 2011 11:09:08 +0000 (UTC) Received: (qmail 1543 invoked by uid 500); 18 Aug 2011 11:09:08 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 286 invoked by uid 500); 18 Aug 2011 11:09:01 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 238 invoked by uid 99); 18 Aug 2011 11:08:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Aug 2011 11:08:58 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [193.74.71.26] (HELO hel.is.scarlet.be) (193.74.71.26) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Aug 2011 11:08:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=scarlet.be; s=scarlet; t=1313665709; bh=UJPI9JI/knTQ8HlUsN+D3pMyXUglhF3y8kLOJWBFqOQ=; h=Date:From:To:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Transfer-Encoding:In-Reply-To; b=11uSfrP27jiOuX+v52uQcqLyLkvuMhdIeQQwwZYnJq3hSH9DZalJ8omjXAqdz4iQ6 74qSIxfoyhiN0XcxeQASyrSPAUSt2HdJ7O8dEpyalduZhRTx6kVncXJkTn9LW5e8FH 1/UErW7GgnwQPLS5IrxmxEtyiW8EYU0YdeWjh+Fo= Received: from mail.harfang.homelinux.org (ip-213-49-236-71.dsl.scarlet.be [213.49.236.71]) by hel.is.scarlet.be (8.14.5/8.14.5) with ESMTP id p7IB8SND016259 for ; Thu, 18 Aug 2011 13:08:29 +0200 X-Scarlet: d=1313665709 c=213.49.236.71 Received: from localhost (mail.harfang.homelinux.org [192.168.20.11]) by mail.harfang.homelinux.org (Postfix) with ESMTP id 5A16E617E9 for ; Thu, 18 Aug 2011 13:13:28 +0200 (CEST) Received: from mail.harfang.homelinux.org ([192.168.20.11]) by localhost (mail.harfang.homelinux.org [192.168.20.11]) (amavisd-new, port 10024) with ESMTP id cCWEdPC03d5L for ; Thu, 18 Aug 2011 13:13:26 +0200 (CEST) Received: from dusk.harfang.homelinux.org (mail.harfang.homelinux.org [192.168.20.11]) by mail.harfang.homelinux.org (Postfix) with ESMTP id 765A3617CB for ; Thu, 18 Aug 2011 13:13:26 +0200 (CEST) Received: from eran by dusk.harfang.homelinux.org with local (Exim 4.76) (envelope-from ) id 1Qu0XO-0003cQ-85 for dev@commons.apache.org; Thu, 18 Aug 2011 13:13:26 +0200 Date: Thu, 18 Aug 2011 13:13:25 +0200 From: Gilles Sadowski To: dev@commons.apache.org Subject: Re: [Math] New method: "addToEntry" in "RealVector" Message-ID: <20110818111325.GI2590@dusk.harfang.homelinux.org> Mail-Followup-To: dev@commons.apache.org References: <20110817221442.GM18819@dusk.harfang.homelinux.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Operating-System: Tiny Tux X-PGP-Key-Fingerprint: 53B9 972E C2E6 B93C BEAD 7092 09E6 AF46 51D0 5641 User-Agent: Mutt/1.5.21 (2010-09-15) X-DCC-scarlet.be-Metrics: hel 20002; Body=1 Fuz1=1 Fuz2=1 X-Virus-Scanned: clamav-milter 0.97.1-exp at hel X-Virus-Status: Clean X-Virus-Checked: Checked by ClamAV on apache.org 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