From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23863 invoked by alias); 6 Jan 2010 12:04:30 -0000 Received: (qmail 23608 invoked by uid 22791); 6 Jan 2010 12:04:28 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from filtteri5.pp.htv.fi (HELO filtteri5.pp.htv.fi) (213.243.153.188) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 06 Jan 2010 12:04:25 +0000 Received: from localhost (localhost [127.0.0.1]) by filtteri5.pp.htv.fi (Postfix) with ESMTP id 35ECF5A60CF; Wed, 6 Jan 2010 14:04:23 +0200 (EET) Received: from smtp5.welho.com ([213.243.153.39]) by localhost (filtteri5.pp.htv.fi [213.243.153.188]) (amavisd-new, port 10024) with ESMTP id xw11sb8JeymM; Wed, 6 Jan 2010 14:04:20 +0200 (EET) Received: from [10.0.0.133] (cs27089207.pp.htv.fi [89.27.89.207]) by smtp5.welho.com (Postfix) with ESMTP id 76DA05BC004; Wed, 6 Jan 2010 14:04:20 +0200 (EET) Message-ID: <4B447C43.2050408@iki.fi> Date: Wed, 06 Jan 2010 12:04:00 -0000 From: Tuomo Keskitalo User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: Gerard Jungman CC: gsl-discuss@sourceware.org Subject: Re: gsl container designs References: <1259110486.3028.69.camel@manticore.lanl.gov> In-Reply-To: <1259110486.3028.69.camel@manticore.lanl.gov> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: 2010-q1/txt/msg00002.txt.bz2 Hello, On 11/25/2009 02:54 AM, Gerard Jungman wrote: > Here are header files for a couple different approaches to containers. > I didn't bother with any implementations; it seems obvious how to > implement most of these functions. > > The designs are not complete, but they express most of > the important stuff. Your design 1 looks very interesting. I don't think your designs would support banded and packed matrices, or would it? (see the last pages of "Legacy BLAS: C Interface to the Legacy BLAS" at http://www.netlib.org/blas/blast-forum/) I could not think of anything why your design 1 would not work for me. The index mapping is particularly elegant! -- Tuomo.Keskitalo@iki.fi http://iki.fi/tuomo.keskitalo