[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-gsl] Extracting real/imag parts of complex vectors and matrice
Re: [Help-gsl] Extracting real/imag parts of complex vectors and matrices
Mon, 11 Jul 2005 19:43:42 +0100
Tyler Brown writes:
> Does anyone know if there is a gsl function that returns the real (or
> imaginary) part of complex vectors and matrices?
There are several functions for it, e.g. gsl_vector_complex_real(),...
See the section on "Vector Views" in the manual (copies can be
purchased at http://www.network-theory.co.uk/gsl/manual/)
For matrices, use the matrix row/column views (also in the manual,
same chapter) in combination with these--as James said, the only way
to make a pure real/imag matrix is by copying the elements out, due to
the restrictions on memory layout.
Network Theory Ltd,
Publishing Free Software Manuals --- http://www.network-theory.co.uk/