Re: [linux-audio-dev] dealing with complex numbers

From: Erik de Castro Lopo <mle+la@email-addr-hidden-nerd.com>
Date: Tue Dec 13 2005 - 23:05:04 EET

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:05 2005

This archive was generated by hypermail 2.1.8 : Wed Dec 14 2005 - 00:15:05 EET