我要使用此代碼,但我得到收到以下錯誤:未知的尺寸誤差
error c2036'Complex_Z 'unknown size
typedef struct Complex_Z{
double r, i;
} ;
void update_projection_zprimme(struct Complex_Z *X, struct Complex_Z *Y, struct Complex_Z *Z,
int numCols, int maxCols, int blockSize, struct Complex_Z *rwork,
struct primme_params *primme) {
int j; /* Loop variable */
int count;
struct Complex_Z tpone = {+1.0e+00,+0.0e00};
struct Complex_Z tzero = {+0.0e+00,+0.0e00};
/* --------------------------------------------------------------------- */
/* Zero the work array to prevent floating point traps during all-reduce */
/* --------------------------------------------------------------------- */
for (j = 0; j < maxCols*blockSize; j++) {
rwork[j] = tzero; //error c2036'Complex_Z 'unknown size
}
修復您的格式。 – 2010-09-23 15:28:07
請讓問題成爲一個真正的問題,並對代碼進行格式化以使其可以被讀取。 – Darron 2010-09-23 15:28:20
爲什麼人們如此迅速地埋葬這件事?給新手休息一下。有一些代碼和一個問題。 – z5h 2010-09-23 15:29:19