public inbox for gsl-discuss@sourceware.org
 help / color / mirror / Atom feed
* 3 points from a new user of gsl
@ 2001-12-19 13:20 Jean-Max Redonnet
  2001-12-19 13:20 ` Toby White
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jean-Max Redonnet @ 2001-12-19 13:20 UTC (permalink / raw)
  To: gsl-discuss

Hi,

I'm a new user of gsl. I plan to use it for managing with vectors and 
matrices and multidimensional root finding.
Here is my first impression on this library (be indulgent, i'm not a great 
hacker,  just a phD in mechanical engineering needing free tools to solve its 
problems).

I'm using version 0.7 on Mandrake 8.0.
Install with rpm package is ok. Good job.
Just a small problem
$ /usr/bin/gsl-config --libs
returns
-L/usr/lib -lgsl -lm
This not include -lblas that might be useful sometines. Is it normal ?

Multidimensional root finding :
works fine especially with newton algorithm (as expected).
just a suggestion : It would be nice sometimes to be able to bound each 
variable. I've not find an easy way to do this in current release. Although 
this may help the algorithm to find the "right" solution. Is it possible ? Is 
it reasonnable to imagine this will be possible in future releases?

Vectors and matrices
I've not found any function to get the norm of a vector, so I've writed my 
own one, but I think this may be useful to include this feture in future 
release. What about this suggestion?
Here is my code to do this - Need improvements (especially to manage 
infinities)

double
vector_norm(gsl_vector *v, int n)
{
  int i;
  double tmp = 0;
  
  for(i = 0; i < v->size; i++)
    {
      tmp += pow(gsl_vector_get (v, i), n);
    }
  
  return sqrt(tmp);
}

Hope this points are in scope of this mailing list.

Jean-Max Redonnet

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-12-19 13:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-19 13:20 3 points from a new user of gsl Jean-Max Redonnet
2001-12-19 13:20 ` Toby White
2001-12-19 13:20 ` Philip Kendall
2001-12-19 13:20 ` Brian Gough

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