/* various complex number defs */ #ifndef _CMPLX_DEFINED #define _CMPLX_DEFINED template struct ComplexT { T x, y; T real() const { return x; } T imag() const { return y; } }; template struct HyperComplexT : public ComplexT { T z, t; }; typedef struct ComplexT ComplexD; typedef struct ComplexT ComplexL; typedef struct HyperComplexT HyperComplexD; #endif