Skip to content

Commit 254db9b

Browse files
authored
Use in-place transform shortcut only if matrix is square
1 parent 1e9247c commit 254db9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/imatcopy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ void CNAME( enum CBLAS_ORDER CORDER, enum CBLAS_TRANSPOSE CTRANS, blasint crows,
121121
return;
122122
}
123123
#ifdef NEW_IMATCOPY
124-
if ( *lda == *ldb ) {
124+
if ( *lda == *ldb && *cols == *rows ) {
125125
if ( order == BlasColMajor )
126126
{
127127
if ( trans == BlasNoTrans )

0 commit comments

Comments
 (0)