logo       

Re: ODE solvers with complex data: msg#00008

lib.gsl.general

Subject: Re: ODE solvers with complex data

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/


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise