Merge pull request #1303 from martin-frbg/imatcopy-rowscols

Fix cols/rows mixup in omatcopy 2nd step for BlasTrans cases
This commit is contained in:
Martin Kroeker 2017-09-14 21:46:26 +02:00 committed by GitHub
commit 742f54c235
1 changed files with 3 additions and 3 deletions

View File

@ -121,7 +121,7 @@ void CNAME( enum CBLAS_ORDER CORDER, enum CBLAS_TRANSPOSE CTRANS, blasint crows,
return;
}
#ifdef NEW_IMATCOPY
if ( *lda == *ldb && *cols == *rows ) {
if ( *lda == *ldb && *rows == *cols) {
if ( order == BlasColMajor )
{
if ( trans == BlasNoTrans )
@ -171,7 +171,7 @@ void CNAME( enum CBLAS_ORDER CORDER, enum CBLAS_TRANSPOSE CTRANS, blasint crows,
else
{
OMATCOPY_K_CT(*rows, *cols, *alpha, a, *lda, b, *ldb );
OMATCOPY_K_CN(*rows, *cols, (FLOAT) 1.0, b, *ldb, a, *ldb );
OMATCOPY_K_CN(*cols, *rows, (FLOAT) 1.0, b, *ldb, a, *ldb );
}
}
else
@ -184,7 +184,7 @@ void CNAME( enum CBLAS_ORDER CORDER, enum CBLAS_TRANSPOSE CTRANS, blasint crows,
else
{
OMATCOPY_K_RT(*rows, *cols, *alpha, a, *lda, b, *ldb );
OMATCOPY_K_RN(*rows, *cols, (FLOAT) 1.0, b, *ldb, a, *ldb );
OMATCOPY_K_RN(*cols, *rows, (FLOAT) 1.0, b, *ldb, a, *ldb );
}
}