[ VIGRA Homepage | Function Index | Class Index | Namespaces | File List | Main Page ]
Wrapper class for the FFTW complex types 'fftw_complex
'.
More...
#include <vigra/fftw3.hxx>
Public Types | |
typedef FFTWReal2Complex< Real >::type | complex_type |
typedef value_type const * | const_iterator |
typedef value_type const & | const_reference |
typedef value_type * | iterator |
typedef value_type | NormType |
typedef value_type & | reference |
typedef value_type | SquaredNormType |
typedef Real | value_type |
Wrapper class for the FFTW complex types 'fftw_complex
'.
This class encapsulates the low-level complex number types provided by the FFTW Fast Fourier Transform library (i.e. 'fftw_complex
', 'fftwf_complex
', 'fftwl_complex
'). In particular, it provides constructors, member functions and arithmetic operators that make FFTW complex numbers compatible with std::complex
. In addition, the class defines transformations to polar coordinates and accessors.
FFTWComplex implements the concepts AlgebraicField and DivisionAlgebra. The standard image types FFTWRealImage
and FFTWComplexImage
are defined.
See also:
#include <vigra/fftw3.hxx> (for FFTW 3) or
#include <vigra/fftw.hxx> (for deprecated FFTW 2)
Namespace: vigra
typedef FFTWReal2Complex<Real>::type complex_type |
The wrapped complex type
typedef Real value_type |
The complex' component type, as defined in 'fftw3.h
'
typedef value_type& reference |
reference type (result of operator[])
typedef value_type const& const_reference |
const reference type (result of operator[] const)
typedef value_type* iterator |
iterator type (result of begin() )
typedef value_type const* const_iterator |
const iterator type (result of begin() const)
typedef value_type NormType |
The norm type (result of magnitude())
typedef value_type SquaredNormType |
The squared norm type (result of squaredMagnitde())
FFTWComplex | ( | value_type const & | re = 0.0 , |
value_type const & | im = 0.0 |
||
) |
Construct from real and imaginary part. Default: 0.
FFTWComplex | ( | FFTWComplex< Real > const & | o | ) |
Copy constructor.
Copy constructor.
FFTWComplex | ( | fftw_complex const & | o | ) |
Construct from plain fftw_complex
.
FFTWComplex | ( | fftwf_complex const & | o | ) |
Construct from plain fftwf_complex
.
FFTWComplex | ( | fftwl_complex const & | o | ) |
Construct from plain fftwl_complex
.
Construct from std::complex.
Construct from TinyVector.
FFTWComplex & operator= | ( | FFTWComplex< Real > const & | o | ) |
Assignment.
FFTWComplex & operator= | ( | FFTWComplex< U > const & | o | ) |
Assignment.
FFTWComplex & operator= | ( | fftw_complex const & | o | ) |
Assignment.
FFTWComplex & operator= | ( | fftwf_complex const & | o | ) |
Assignment.
FFTWComplex & operator= | ( | fftwl_complex const & | o | ) |
Assignment.
FFTWComplex & operator= | ( | double | o | ) |
Assignment.
FFTWComplex & operator= | ( | float | o | ) |
Assignment.
FFTWComplex & operator= | ( | long double | o | ) |
Assignment.
FFTWComplex & operator= | ( | TinyVector< T, 2 > const & | o | ) |
Assignment.
FFTWComplex & operator= | ( | std::complex< T > const & | o | ) |
Assignment.
FFTWComplex operator- | ( | ) | const |
Unary negation.
SquaredNormType squaredMagnitude | ( | ) | const |
Squared magnitude x*conj(x)
value_type phase | ( | ) | const |
Phase angle.
Access components as if number were a vector.
const_reference operator[] | ( | int | i | ) | const |
Read components as if number were a vector.
© Ullrich Köthe (ullrich.koethe@iwr.uni-heidelberg.de) |