linear algebra package question

Stephen Adler adler at stephenadler.com
Tue Jul 13 15:28:02 EDT 2004


Guys,

I'm thinking of using the gsl-blas routines provided by
gsl to do some basic linear algebra stuff. Now, I want to
do something really simple, do a scaler multiply of 2 vectors,
(i.e.

   for (int i=0;i<VecSize;i++) c[i] = a[i]*b[i]

)

Now I could write the for loop, but I would like to stick
to using the gsl-blas routines to do all vector and matrix
manipulations. My problem is that I can't seem to find a
vector multiply function! What's the trick?

Thanks. Steve.





More information about the Discuss mailing list