[ VIGRA Homepage | Class Index | Function Index | File Index | Main Page ]

details Numeric and Promote Traits of FFTWComplex VIGRA

The numeric and promote traits for FFTWComplex follow the general specifications for Numeric and Promotion Traits. They are implemented as follows:

    template <>
    struct NumericTraits<FFTWComplex >
    {
        typedef fftw_complex Type;
        typedef fftw_complex Promote;
        typedef fftw_complex RealPromote;
        typedef VigraFalseType isIntegral;
        typedef VigraFalseType isScalar;
        typedef VigraFalseType isOrdered;

        // etc.
    };

    template <>
    struct PromoteTraits<FFTWComplex, FFTWComplex>
    {
        typedef FFTWComplex Promote;
    };

    template <>
    struct PromoteTraits<FFTWComplex, double>
    {
        typedef FFTWComplex Promote;
    };

    template <>
    struct PromoteTraits<double, FFTWComplex>
    {
        typedef FFTWComplex Promote;
    };

where the type 'fftw_complex' is defined in 'fftw.h'

#include "vigra/fftw.hxx"
Namespace: vigra

© Ullrich Köthe (koethe@informatik.uni-hamburg.de)
Cognitive Systems Group, University of Hamburg, Germany

html generated using doxygen and Python
VIGRA 1.2.0 (7 Aug 2003)