hi, everyone<br><br>My codes are as follows:<br> ierr=MatGetSubMatrices(tempM_mat,1,&is_row,&is_col,MAT_INITIAL_MATRIX,&tempA_mat); CHKERRQ(ierr);<br> A_mat=*tempA_mat;<br> ierr=MatDestroy(tempM_mat);CHKERRQ(ierr);<br>
ierr=MatGetSize(A_mat,&M,&N);CHKERRQ(ierr);<br> //AtA<br> ierr=MatMatMultTranspose(A_mat,A_mat,MAT_INITIAL_MATRIX,fill,&AtA_mat);<br><br>I get a seqdense submatrix "A_mat" by MatGetSubMatrices(). I further get At*A by MatMatMultTranspose(). However, I meet an error:<br>
" ** On entry to DGEMM parameter number 8 had an illegal value"<br><br>I debug my codes. In MatMatMultTranspose_seqdense_seqdense(), the codes call <br>"BLASgemm_("T","N",&m,&n,&k,&_DOne,a->v,&a->lda,b->v,&b->lda,&_DZero,c->v,&c->lda);"<br>
I don't know the meaning of the 8th parameters"&a->lda". In my codes, its value is "0".<br><br>Are there any problems in my codes? could you give me some advice? thanks a lot.<br><br>Regards,<br>
Yujie <br>