ISO C99 supports complex as a variable type and the GNU compiler supports that.
Taybin
-----Original Message-----
From: Erik de Castro Lopo <mle+la(a)mega-nerd.com>
Sent: Dec 13, 2005 4:05 PM
To: The Linux Audio Developers' Mailing List
<linux-audio-dev(a)music.columbia.edu>
Subject: Re: [linux-audio-dev] dealing with complex numbers
Artemiy Pavlov wrote:
Hey everybody!
This may be a little bit off-topic, but can anyone suggest me any reading on
how to use complex numbers in C or C++? Is there any library or ++ classes
for such computations?
In C++:
#include <complex>
which is a template clase. You can then do:
typedef std::complex<double> dcomplex ;
Erik
--
+-----------------------------------------------------------+
Erik de Castro Lopo
+-----------------------------------------------------------+
Open Source and Free Software means that you never sacrifice quality
of the code for meeting deadlines set up by people not participating
directly in the software development process.