This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Proposal for new functions for matrix manipulation.


> 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                
----------------------------------------------------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]