ISO C99 supports complex as a variable type and the GNU compiler supports that.
Taybin
-----Original Message-----
From: Erik de Castro Lopo <mle+la@email-addr-hidden-nerd.com>
Sent: Dec 13, 2005 4:05 PM
To: The Linux Audio Developers' Mailing List <linux-audio-dev@email-addr-hidden>
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.Received on Wed Dec 14 00:15:06 2005
This archive was generated by hypermail 2.1.8 : Wed Dec 14 2005 - 00:15:06 EET