From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1230 invoked by alias); 27 Aug 2009 17:13:13 -0000 Received: (qmail 1220 invoked by uid 22791); 27 Aug 2009 17:13:11 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail.phy.duke.edu (HELO mail.phy.duke.edu) (152.3.182.2) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 27 Aug 2009 17:13:03 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.phy.duke.edu (Postfix) with ESMTP id 9CF74BEE7F; Thu, 27 Aug 2009 13:11:04 -0400 (EDT) Received: from mail.phy.duke.edu ([127.0.0.1]) by localhost (mail.phy.duke.edu [127.0.0.1]) (amavisd-new, port 10026) with LMTP id gF+G7N3MxAXT; Thu, 27 Aug 2009 13:11:04 -0400 (EDT) Received: from user-152-3-156-95.wireless.duke.edu (user-152-3-156-95.wireless.duke.edu [152.3.156.95]) by mail.phy.duke.edu (Postfix) with ESMTP id 7C033BEE7A; Thu, 27 Aug 2009 13:11:04 -0400 (EDT) Date: Thu, 27 Aug 2009 17:13:00 -0000 From: "Robert G. Brown" To: Jordi Burguet Castell cc: GSL Discuss Mailing List Subject: Re: GSL 2.0 roadmap In-Reply-To: <1d6905490908270736s626985b4ycef9a9e53e4a4bb5@mail.gmail.com> Message-ID: References: <48E25CA9.6080306@iki.fi> <498727E5.6080407@iki.fi> <49AA9DB5.6030908@iki.fi> <49FB01D1.30000@iki.fi> <4A7ADFDC.9080408@iki.fi> <4A967114.8080600@iki.fi> <1d6905490908270736s626985b4ycef9a9e53e4a4bb5@mail.gmail.com> User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Mailing-List: contact gsl-discuss-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gsl-discuss-owner@sourceware.org X-SW-Source: 2009-q3/txt/msg00021.txt.bz2 On Thu, 27 Aug 2009, Jordi Burguet Castell wrote: > You may want to check the extensions "tensor" and "marray" that I also > developed a while ago: > http://www.gnu.org/software/gsl/#extensions > > I don't know how much overlap they have with your ideas, the main > thing for them is to manipulate tensors of arbitrary rank and do the > common operations on them. I'll try to look when I get a chance. Unfortunately none of my current projects are using tensors much these days, so it may take me some time to get to it. Basically my approach was to build a fairly systematically creating ***...whatever pointers with arbitrary index limits, creating a linear data object, and suitably packing the offsets into the toplevel, castable tensor pointer. The overall tensor object was a struct with the requisite pieces and e.g. limit information available inside the struct, with a create/destroy function that allocated and packed and unpacked and freed respectively, but the approach allowed one to directly access the tensor in array notation, whatever[i][j][k]... Not terribly subtle, in other words. Your extension is probably better thought out. > This may also interest you, quoting from the web: "If you want to add > a feature to GSL we recommend that you make it an extension first. We > will list it here so that people can try it out. Extensions can be > incorporated after they have been tested in real use (see "How to > help" for more information)." So maybe you can consider making your > code an extension if it is not already? Yes, I recall that, although it was a pretty long time ago when I wrote these particular extensions and I'm not sure that this was yet standard policy. Maybe it was, I don't know; I do remember asking if anybody was interested in them at that time and nobody suggested making them a formal extension instead. My dieharder program is listed in this sort of way (including, I imagine, the extra GSL-compatible rngs and an "add-rng" function that basically makes the GSL list extensible). I could probably turn at least that part into a formal extension pretty easily, and it is arguably the most useful piece of what I've got. Thanks! rgb > > Cheers, > Jordi > Robert G. Brown http://www.phy.duke.edu/~rgb/ Duke University Dept. of Physics, Box 90305 Durham, N.C. 27708-0305 Phone: 1-919-660-2567 Fax: 919-660-2525 email:rgb@phy.duke.edu