Math-Gsl - how to create complex vectors and matrices?

Posted on Fri Nov 7 21:19:36 2008 by larryl
how to create complex vectors and matrices?
Hi. I've just downloaded and installed Math-GSL-0.14. I'm trying to use the Eigenvector routines in GSL. Therefore I need to pass complex vectors and matrices to the GSL routine (e,g. gsl_eigen_nonsymmv()). I can see how to use Math::GSL::Complex to get single complex numbers, and how to use Math::GSL::Vector to get vectors. But I can't figure out how to get a complex vector (or matrix). In Vector.i and Vector_wrap.c it seems like the complex vector routines are being wrapped; but I don't see mention of them in the perl man pages which are generated or any examples of how to use them. I'm new to perl objects, swig, xs, etc, so I can't quite decipher from those files what I should do. Can complex vectors and matrices be created? If so, how? Have I missed some documentation somewhere? Thanks. Larry [running 64 bit Fedora8].
Write a response