help-gsl
[Top][All Lists]
Advanced

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

Re: [Help-gsl] ODE solvers with complex data


From: Brian Gough
Subject: Re: [Help-gsl] ODE solvers with complex data
Date: Fri, 02 Nov 2007 08:49:28 +0000
User-agent: Wanderlust/2.14.0 (Africa) Emacs/22.1 Mule/5.0 (SAKAKI)

At Wed, 31 Oct 2007 20:29:38 -0400,
Michael Stauffer wrote:
> My first task with GSL is to convert some Matlab code to C. The code uses
> the Matlab ODE solvers, and so I'm planning on using the GSL odeiv routines.
> However, the Matlab code uses complex data, but it seems the GSL odeiv
> routines only use double-type data. The GSL odeiv system "function" routine
> specifies input and output as type double. I figured that since GSL supports
> complex data types, there would be matching odeiv functions for complex
> types if it were possible to use them.

For odes, you'll need to work with the real and imaginary components
as doubles in an array of length 2N.

We don't generally have complex versions of every function when the
real version can be used, as it leads to a lot of duplication in the
code.

-- 
best regards,

Brian Gough

GNU Scientific Library -
http://www.gnu.org/software/gsl/




reply via email to

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