摘要:
#include #include const int DIM = 1024;typedef struct cuComplex{ float r; float i; __device__ cuComplex(float a, float b) :r(a) ,i(b) { } __device__ float magnitude2(void) { return r * r + i * i; } __device__ cuComplex operator * (const cuComplex & a) ... 阅读全文
摘要:
cuda 阅读全文