Revisión | 982324fe8f9e02772257b193a00fc2ba9d157aa4 (tree) |
---|---|
Tiempo | 2013-10-14 17:55:47 |
Autor | Mikiya Fujii <mikiya.fujii@gmai...> |
Commiter | Mikiya Fujii |
trunk.r1542 is merged to branches/fx10. #32094 #32235
git-svn-id: https://svn.sourceforge.jp/svnroot/molds/branches/fx10@1543 1136aad2-a195-0410-b898-f5ea1d11b9d8
@@ -112,13 +112,7 @@ molds_lapack_int Lapack::Dsyevd(double** matrix, double* eigenValues, molds_lapa | ||
112 | 112 | } |
113 | 113 | |
114 | 114 | // call Lapack |
115 | -#ifdef __INTEL_COMPILER | |
116 | - info = LAPACKE_dsyevd(LAPACK_ROW_MAJOR, job, uplo, size, &matrix[0][0], lda, eigenValues); | |
117 | -#elif defined __FCC_VERSION | |
118 | 115 | info = LAPACKE_dsyevd(LAPACK_ROW_MAJOR, job, uplo, size, &matrix[0][0], lda, eigenValues); |
119 | -#else | |
120 | - info = LAPACKE_dsyevd(LAPACK_ROW_MAJOR, job, uplo, size, &matrix[0][0], lda, eigenValues); | |
121 | -#endif | |
122 | 116 | |
123 | 117 | // make i-th row i-the eigenvector |
124 | 118 | double** tmpMatrix=NULL; |
@@ -189,13 +183,8 @@ molds_lapack_int Lapack::Dsysv(double** matrix, double* b, molds_lapack_int size | ||
189 | 183 | // malloc |
190 | 184 | ipiv = (molds_lapack_int*)MOLDS_LAPACK_malloc( sizeof(molds_lapack_int)*2*size, 16 ); |
191 | 185 | |
192 | -#ifdef __INTEL_COMPILER | |
193 | - info = LAPACKE_dsysv(LAPACK_ROW_MAJOR, uplo, size, nrhs, &matrix[0][0], lda, ipiv, b, ldb); | |
194 | -#elif defined __FCC_VERSION | |
195 | - info = LAPACKE_dsysv(LAPACK_ROW_MAJOR, uplo, size, nrhs, &matrix[0][0], lda, ipiv, b, ldb); | |
196 | -#else | |
186 | + // call Lapack | |
197 | 187 | info = LAPACKE_dsysv(LAPACK_ROW_MAJOR, uplo, size, nrhs, &matrix[0][0], lda, ipiv, b, ldb); |
198 | -#endif | |
199 | 188 | |
200 | 189 | // free |
201 | 190 | MOLDS_LAPACK_free(ipiv); |
@@ -244,13 +233,8 @@ molds_lapack_int Lapack::Dgetrs(double** matrix, double** b, molds_lapack_int si | ||
244 | 233 | } |
245 | 234 | } |
246 | 235 | this->Dgetrf(&matrix[0][0], ipiv, size, size); |
247 | -#ifdef __INTEL_COMPILER | |
248 | - info = LAPACKE_dgetrs(LAPACK_ROW_MAJOR, trans, size, nrhs, &matrix[0][0], lda, ipiv, tmpB, ldb); | |
249 | -#elif defined __FCC_VERSION | |
236 | + // call Lapack | |
250 | 237 | info = LAPACKE_dgetrs(LAPACK_ROW_MAJOR, trans, size, nrhs, &matrix[0][0], lda, ipiv, tmpB, ldb); |
251 | -#else | |
252 | - info = LAPACKE_dgetrs(LAPACK_ROW_MAJOR, trans, size, nrhs, &matrix[0][0], lda, ipiv, tmpB, ldb); | |
253 | -#endif | |
254 | 238 | for(molds_lapack_int i = 0; i < nrhs; i++){ |
255 | 239 | for(molds_lapack_int j = 0; j < size; j++){ |
256 | 240 | b[i][j] = tmpB[j*nrhs+i]; |
@@ -299,13 +283,8 @@ molds_lapack_int Lapack::Dgetrf(double** matrix, molds_lapack_int* ipiv, molds_l | ||
299 | 283 | molds_lapack_int Lapack::Dgetrf(double* matrix, molds_lapack_int* ipiv, molds_lapack_int sizeM, molds_lapack_int sizeN) const{ |
300 | 284 | molds_lapack_int info = 0; |
301 | 285 | molds_lapack_int lda = sizeM; |
302 | -#ifdef __INTEL_COMPILER | |
303 | - info = LAPACKE_dgetrf(LAPACK_ROW_MAJOR, sizeM, sizeN, matrix, lda, ipiv); | |
304 | -#elif defined __FCC_VERSION | |
305 | - info = LAPACKE_dgetrf(LAPACK_ROW_MAJOR, sizeM, sizeN, matrix, lda, ipiv); | |
306 | -#else | |
286 | + // call Lapack | |
307 | 287 | info = LAPACKE_dgetrf(LAPACK_ROW_MAJOR, sizeM, sizeN, matrix, lda, ipiv); |
308 | -#endif | |
309 | 288 | if(info != 0){ |
310 | 289 | stringstream ss; |
311 | 290 | ss << errorMessageDgetrfInfo; |