#ifndef DATATYPES_H #define DATATYPES_H #include #define PRECISION_SINGLE #ifdef PRECISION_SINGLE typedef float ptype; #elif defined PRECISION_DOUBLE typedef double ptype; #endif #define BLOCK 256 #define SQRT_BLOCK 16 #define PI 3.14159 //a very small number #define EPSILON 0.00001 //CUDA hybrid code - complex class should run on both the CPU and GPU typedef ptype fieldPoint; //hybrid GPU/CPU complex data typ #include "rts/rtsComplex.h" #include "rts/rtsVector.h" #include "rts/rtsPoint.h" #include "rts/rtsQuad.h" typedef rts::rtsComplex bsComplex; typedef rts::rtsVector bsVector; typedef rts::rtsPoint bsPoint; typedef rts::rtsQuad bsRect; #endif