typedef float2 Complex;
//复数比例乘
static device host inline Complex ComplexScale(Complex a, float s)
{
Complex c;
c.x = s * a.x;
c.y = s * a.y;
return c;
}
以上代码是我在一个头文件定义复数比例乘,编译时报错,显示error : expected an identifier(指在大括号第一句)