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 3E5BE61C6 for ; Fri, 8 Jul 2011 05:17:01 +0000 (UTC) Received: (qmail 75377 invoked by uid 500); 8 Jul 2011 05:16:59 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 74984 invoked by uid 500); 8 Jul 2011 05:16:55 -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 74965 invoked by uid 99); 8 Jul 2011 05:16:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jul 2011 05:16:48 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ted.dunning@gmail.com designates 209.85.216.178 as permitted sender) Received: from [209.85.216.178] (HELO mail-qy0-f178.google.com) (209.85.216.178) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jul 2011 05:16:41 +0000 Received: by qyk27 with SMTP id 27so927274qyk.9 for ; Thu, 07 Jul 2011 22:16:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=JyuHJdLW0GWoYOs2TXkUci31uMHXK0ca3l9q9TVRcOY=; b=O6wFMfY8g20lmzEpo+IlPpsfj9/E1mvWWAwGD0LsvtV/pUkYdFY5HQBuFSqcWqk9Ni L3UPG70ROpgl21dMrTn5mLNLfVsAbcPK8zlg0e0nZvxR5z0koMkjFmcBT9TuTHuBzU/D Z65fxCMoA1+RtBb0pocobEicLjZP+qDPgjsOI= Received: by 10.224.117.11 with SMTP id o11mr1288937qaq.358.1310102180095; Thu, 07 Jul 2011 22:16:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.224.20.76 with HTTP; Thu, 7 Jul 2011 22:16:00 -0700 (PDT) In-Reply-To: <20110708030638.E8C4C1407BD71@svoboda.polytechnique.org> References: <20110708030638.E8C4C1407BD71@svoboda.polytechnique.org> From: Ted Dunning Date: Thu, 7 Jul 2011 22:16:00 -0700 Message-ID: Subject: Re: [math] Equivalent of Blas DAXPY To: Commons Developers List Content-Type: multipart/alternative; boundary=20cf3068449110676204a787eff6 X-Virus-Checked: Checked by ClamAV on apache.org --20cf3068449110676204a787eff6 Content-Type: text/plain; charset=UTF-8 AbstractMatrix On Thu, Jul 7, 2011 at 8:06 PM, Sebastien Brisard wrote: > Ted, > Mahout seems to be fairly large (!). What classes should I look at more > specifically? > Thanks! > Sebastien > > >The Colt package used a functional style to implement what you suggest. > > This approach has been inherited by Mahout. > > > The basic idea is that there is an assign method that takes other > arguments > > and a function for combining the arguments. The function allows great > > amounts of flexibility and promotes compositional style. A small amount > of > > special case code for common operations and the JVM's very impressive > > ability to in-line code result in pretty fast operations. > > > The problem with this kind of approach is that users have a very hard > time > > understanding how to write code (where is the plus method, they say. > where > > is the element-wise max of two vectors?) > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > For additional commands, e-mail: dev-help@commons.apache.org > > --20cf3068449110676204a787eff6--