Classes | Defines | Functions
core/vnl/vnl_complex_traits.h File Reference

To allow templated algorithms to determine appropriate actions of conjugation, complexification etc. More...

#include <vcl_complex.h>
#include <vnl/vnl_bignum.h>
#include <vnl/vnl_rational.h>

Go to the source code of this file.

Classes

struct  vnl_complex_traits< float >
struct  vnl_complex_traits< double >
struct  vnl_complex_traits< long double >
struct  vnl_complex_traits< vcl_complex< float > >
struct  vnl_complex_traits< vcl_complex< double > >
struct  vnl_complex_traits< vcl_complex< long double > >
struct  vnl_complex_traits< vnl_bignum >
struct  vnl_complex_traits< vcl_complex< vnl_bignum > >
struct  vnl_complex_traits< vnl_rational >
struct  vnl_complex_traits< vcl_complex< vnl_rational > >

Defines

#define macro(T)
#define makro(T)

Functions

 makro (char)
 makro (short)
 makro (int)
 makro (long)

Detailed Description

To allow templated algorithms to determine appropriate actions of conjugation, complexification etc.

Author:
fsm, Oxford RRG, 26 Mar 1999
    Modifications
     LSB (Manchester) 26/3/01 Documentation tidied
   

Definition in file vnl_complex_traits.h.


Define Documentation

#define macro (   T)
Value:
VCL_DEFINE_SPECIALIZATION struct vnl_complex_traits<T > \
{ \
  enum { isreal = true }; \
  static T conjugate(T x) { return x; } \
  static vcl_complex<T> complexify(T x) { return vcl_complex<T >(x, (T)0); } \
}

Definition at line 33 of file vnl_complex_traits.h.

#define makro (   T)
Value:
macro(signed T); \
macro(unsigned T)

Definition at line 40 of file vnl_complex_traits.h.


Function Documentation

makro ( char  )
makro ( short  )
makro ( int  )
makro ( long  )