思路
现在手上有了cuda的复数矩阵乘法和复数矩阵转置。理论上讲可以做一个简单的波束形成了。
按照matlab之并行计算 的思想把for循环都变成矩阵来做。
- 复数矩阵定义
typedef struct {
int width;
int height;
int stride;
double * real;
double * imag;
} Matrix;
- 复数矩阵乘法
CvalueR += AsR[row][e] * BsR[e][col]-AsI[row][e]*BsI[e][col];
Cv