• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisión982324fe8f9e02772257b193a00fc2ba9d157aa4 (tree)
Tiempo2013-10-14 17:55:47
AutorMikiya Fujii <mikiya.fujii@gmai...>
CommiterMikiya Fujii

Log Message

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

Cambiar Resumen

Diferencia incremental

--- a/src/wrappers/Lapack.cpp
+++ b/src/wrappers/Lapack.cpp
@@ -112,13 +112,7 @@ molds_lapack_int Lapack::Dsyevd(double** matrix, double* eigenValues, molds_lapa
112112 }
113113
114114 // 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
118115 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
122116
123117 // make i-th row i-the eigenvector
124118 double** tmpMatrix=NULL;
@@ -189,13 +183,8 @@ molds_lapack_int Lapack::Dsysv(double** matrix, double* b, molds_lapack_int size
189183 // malloc
190184 ipiv = (molds_lapack_int*)MOLDS_LAPACK_malloc( sizeof(molds_lapack_int)*2*size, 16 );
191185
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
197187 info = LAPACKE_dsysv(LAPACK_ROW_MAJOR, uplo, size, nrhs, &matrix[0][0], lda, ipiv, b, ldb);
198-#endif
199188
200189 // free
201190 MOLDS_LAPACK_free(ipiv);
@@ -244,13 +233,8 @@ molds_lapack_int Lapack::Dgetrs(double** matrix, double** b, molds_lapack_int si
244233 }
245234 }
246235 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
250237 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
254238 for(molds_lapack_int i = 0; i < nrhs; i++){
255239 for(molds_lapack_int j = 0; j < size; j++){
256240 b[i][j] = tmpB[j*nrhs+i];
@@ -299,13 +283,8 @@ molds_lapack_int Lapack::Dgetrf(double** matrix, molds_lapack_int* ipiv, molds_l
299283 molds_lapack_int Lapack::Dgetrf(double* matrix, molds_lapack_int* ipiv, molds_lapack_int sizeM, molds_lapack_int sizeN) const{
300284 molds_lapack_int info = 0;
301285 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
307287 info = LAPACKE_dgetrf(LAPACK_ROW_MAJOR, sizeM, sizeN, matrix, lda, ipiv);
308-#endif
309288 if(info != 0){
310289 stringstream ss;
311290 ss << errorMessageDgetrfInfo;