From dev-return-127270-apmail-commons-dev-archive=commons.apache.org@commons.apache.org Thu Jul 7 13:30:25 2011 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 8217F45FE for ; Thu, 7 Jul 2011 13:30:25 +0000 (UTC) Received: (qmail 15471 invoked by uid 500); 7 Jul 2011 13:30:24 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 15194 invoked by uid 500); 7 Jul 2011 13:30:24 -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 15186 invoked by uid 99); 7 Jul 2011 13:30:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jul 2011 13:30:23 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=FREEMAIL_FROM,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [80.67.169.19] (HELO solo.fdn.fr) (80.67.169.19) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jul 2011 13:30:14 +0000 Received: from lehrin (reverse-229.fdn.fr [80.67.176.229]) by smtp.fdn.fr (Postfix) with ESMTP id 91E5A442FD for ; Thu, 7 Jul 2011 15:29:54 +0200 (CEST) Received: by lehrin (Postfix, from userid 5001) id 17E514073; Thu, 7 Jul 2011 15:29:54 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on lehrin.local X-Spam-Level: Received: from lehrin.local (lehrin.local [127.0.0.1]) by lehrin (Postfix) with ESMTP id E24474070 for ; Thu, 7 Jul 2011 15:29:42 +0200 (CEST) Message-ID: <4E15B4C6.1030008@free.fr> Date: Thu, 07 Jul 2011 15:29:42 +0200 From: Luc Maisonobe User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110419 Thunderbird/3.1.9 MIME-Version: 1.0 To: Commons Developers List Subject: Re: [math] Equivalent of Blas DAXPY References: <20110707083102.714AA140000A3@svoboda.polytechnique.org> In-Reply-To: <20110707083102.714AA140000A3@svoboda.polytechnique.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,FREEMAIL_FROM autolearn=unavailable version=3.3.1 Le 07/07/2011 10:31, Sebastien Brisard a écrit : > Hi, Hi Sébastien, > in Blas, the method DAXPY can lead to very compact code. As far as I know, it > has no equivalent in RealVector. There are a few method called xxxxToSelf, > which modify the calling vector, instead of returning a new one, but these are > restricted to scalars operating on vectors. > In other words, there are no in-place vector-vector operations. > Would you think it useful to add at least one method, say > combineToSelf(double s, double t, RealVector v) > which would replace the components of this by the components of (s * this + t > * v). This would be a slight generalization of DAXPY. For sure this would be an interesting addition. Luc > > It would be fairly easy to implement for ArrayRealVector, not sure about > OpenMapRealVector. > > Best regards, > Sebastien > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > For additional commands, e-mail: dev-help@commons.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org