This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: Proposal for new functions for matrix manipulation.
- From: Brian Gough <bjg at network-theory dot co dot uk>
- To: Lukas Dobrek <dobrek at itp dot uni-hannover dot de>
- Cc: gsl-discuss at sources dot redhat dot com
- Date: Sun, 2 Feb 2003 23:05:42 +0000
- Subject: Re: Proposal for new functions for matrix manipulation.
- References: <20030128141012.GA12800@zibal.itp.uni-hannover.de>
> Whould anyone opose for adding int GSL the set of functions giving the
> easy posibility of adding something to matrix element. For instanca
>
> gsl_matrix_addto_el(gsl_matrix * M, size_t i, size_t j, add);
>
> whould corespond to M->data[i*M->tda+j]+=3Dadd
Thanks for the suggestion.
To avoid increasing the size of GSL too much, I recommend that you
define an inline function in your application for this purpose, using
gsl_matrix_set and gsl_matrix_get.
best regards,
--
Brian Gough
----------------------------------------------------------------------
Network Theory Ltd Phone: 0117 3179309 (+44 117 3179309)
15 Royal Park WWW: http://www.network-theory.co.uk/
Bristol BS8 3AL Email: bjg@network-theory.co.uk
United Kingdom
----------------------------------------------------------------------