Use in-place transform shortcut only if matrix is square

This commit is contained in:
Martin Kroeker 2017-09-03 09:52:55 +02:00 committed by GitHub
parent 1e9247c276
commit 254db9bd7c
1 changed files with 1 additions and 1 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 ) {
if ( *lda == *ldb && *cols == *rows ) {
if ( order == BlasColMajor )
{
if ( trans == BlasNoTrans )