help-gsl
[Top][All Lists]
Advanced

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

Re: [Help-gsl] gsl_complex to fftw_complex type


From: Oliver Jennrich
Subject: Re: [Help-gsl] gsl_complex to fftw_complex type
Date: Wed, 15 Aug 2007 15:15:09 +0200

On 8/15/07, Eric Germaneau <address@hidden> wrote:
> Hello,
>
> I wondering whether its possible to convert gsl_complex to fftw_complex
> type.

Well, gsl_complex is defined as

typedef struct
  {
    double dat[2];
  }
gsl_complex;

whereas fftw_complex is either directly defined as _complex double or
as double[2].

In any event, fftw_complex should be bit compatible with gsl_complex,
so a simple typecasting should do it.


-- 
Space -- the final frontier




reply via email to

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