public inbox for gsl-discuss@sourceware.org
 help / color / mirror / Atom feed
From: James Bergstra <james.bergstra@umontreal.ca>
To: Andrew Makhorin <mao@gnu.org>
Cc: gsl-discuss@sourceware.org
Subject: Re: [Help-gsl] sparse matrices (again)
Date: Sun, 06 May 2007 23:18:00 -0000	[thread overview]
Message-ID: <20070506231809.GA12230@grieg.iro.umontreal.ca> (raw)
In-Reply-To: <844372529.20070505160508@gnu.org>

On Sat, May 05, 2007 at 04:05:08PM +0400, Andrew Makhorin wrote:
> >> I am wondering if it is planned to eventually provide GSL with general
> >> sparse matrix routines (e.g. like those ones which are included in NAG,
> >> ESSL, or Harwell Library)?
> 
> > So far we haven't added sparse matrices because it seemed like
> > this would require several sparse matrix representations to be
> > implemented in order to be useful, each with their own functions.
[snip]
> 
> As it seems to me, it would be very useful to provide GSL at least
> with data structures defining three most commonly used formats for
> general sparse matrices, namely, coordinate format, compressed row
> storage, and compressed column storage, as well as two formats for
> sparse vectors based on compressed vector storage, and a minimal set
> of some basic functions. This would standardize representation of
> sparse objects within the GSL library and make it possible to use
> such data structures on developing sparse linear algebra software
> based on GSL.
> 
> Thank you,
> 
> Andrew Makhorin

Something like this exists as the NIST sparse BLAS:
http://math.nist.gov/spblas/

Perhaps the GSL could 
- include this code (verbatim would make 2800 lines of C), and compile it as
  libgslspblas.so, to complement libgslcblas.so (I have no idea if licensing
  would get in the way.)
- wrap it in a manner similar to gsl_matrix, to provide 
  - element access
  - simple stats (min, max, mean)
  - basic I/O (e.g.  Harwell-Boeing)
  - vector scatter / gather
  - matrix-vector multiply, (matrix-matrix multiply?)

Would these nuts and bolts make progress toward providing sparse solvers though
the GSL?  Would they be useful to many?

Cheers,

James Bergstra
-- 
http://www-etud.iro.umontreal.ca/~bergstrj

  reply	other threads:[~2007-05-06 23:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1041559212.20070425003025@gnu.org>
2007-04-25 21:38 ` Brian Gough
2007-05-05 21:00   ` Andrew Makhorin
2007-05-06 23:18     ` James Bergstra [this message]
2007-05-10 20:13       ` Brian Gough
2007-05-09 17:02     ` Brian Gough
2007-05-14 18:13       ` Konkle, Daniel
2007-05-15 10:42         ` Brian Gough
2007-06-25 17:43       ` Andrew Makhorin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070506231809.GA12230@grieg.iro.umontreal.ca \
    --to=james.bergstra@umontreal.ca \
    --cc=gsl-discuss@sourceware.org \
    --cc=mao@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).