27 #ifndef math_templateCuda_hpp
28 #define math_templateCuda_hpp
32 #include <cuda_runtime.h>
33 #include <cuComplex.h>
40 template<
typename realT>
46 typedef cuComplex cudaType;
50 struct complex<double>
52 typedef cuDoubleComplex cudaType;
56 template<
typename cppType>
59 typedef cppType cudaType;
63 struct cpp2cudaType<std::complex<float>>
65 typedef complex<float>::cudaType cudaType;
69 struct cpp2cudaType<std::complex<double>>
71 typedef complex<double>::cudaType cudaType;