This is the mail archive of the
gsl-discuss@sourceware.org
mailing list for the GSL project.
Re: gsl container designs
- From: Gerard Jungman <jungman at lanl dot gov>
- To: gsl-discuss at sourceware dot org
- Date: Wed, 06 Jan 2010 12:57:29 -0700
- Subject: Re: gsl container designs
- References: <1259110486.3028.69.camel@manticore.lanl.gov> <4B447C43.2050408@iki.fi>
On Wed, 2010-01-06 at 14:04 +0200, Tuomo Keskitalo wrote:
> 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/)
Thanks. It's been a long time since I looked at that document.
You are right; I have only considered the dense case,
purely from laziness. However, I think the banded and
packed cases can be handled similarly. One needs only
to define the indexing schemes to layer on top of
the (essentially universal) data structs. Finally,
add a syntactic layer, to inject appropriate names,
analogous to the syntactic layer that declares
vectors, matrices, etc.
At least, I think it is not conceptually difficult.
Maybe I am missing something.
--
G. Jungman