[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gsl] Extracting real/imag parts of complex vectors and matrice

From: Brian Gough
Subject: Re: [Help-gsl] Extracting real/imag parts of complex vectors and matrices
Date: 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

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.


Brian Gough

Network Theory Ltd,
Publishing Free Software Manuals ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]