Browse Source

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

Fix cols/rows mixup in omatcopy 2nd step for BlasTrans cases
tags/v0.3.0
Martin Kroeker GitHub 8 years ago
parent
commit
742f54c235
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      interface/imatcopy.c

+ 3
- 3
interface/imatcopy.c 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 );
}
}



Loading…
Cancel
Save