Skip to content

Commit 64a0db9

Browse files
Applies fixes thanks to @angsch
1 parent 1c33cda commit 64a0db9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

LAPACKE/src/lapacke_dtpmqrt_work.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ lapack_int LAPACKE_dtpmqrt_work( int matrix_layout, char side, char trans,
4949
}
5050
} else if( matrix_layout == LAPACK_ROW_MAJOR ) {
5151
lapack_int nrowsA, ncolsA, nrowsV;
52-
if ( side == 'L' ) { nrowsA = k; ncolsA = n; nrowsV = m; }
53-
else if ( side == 'R' ) { nrowsA = m; ncolsA = k; nrowsV = n; }
52+
if ( side == LAPACKE_lsame(side, 'l') ) { nrowsA = k; ncolsA = n; nrowsV = m; }
53+
else if ( side == LAPACKE_lsame(side, 'r') ) { nrowsA = m; ncolsA = k; nrowsV = n; }
5454
else {
5555
info = -2;
5656
LAPACKE_xerbla( "LAPACKE_dtpmqrt_work", info );
@@ -118,8 +118,8 @@ lapack_int LAPACKE_dtpmqrt_work( int matrix_layout, char side, char trans,
118118
info = info - 1;
119119
}
120120
/* Transpose output matrices */
121-
LAPACKE_dge_trans( LAPACK_COL_MAJOR, ncolsA, nrowsA, a_t, lda_t, a, lda );
122-
LAPACKE_dge_trans( LAPACK_COL_MAJOR, n, m, b_t, ldb_t, b, ldb );
121+
LAPACKE_dge_trans( LAPACK_COL_MAJOR, nrowsA, ncolsA, a_t, lda_t, a, lda );
122+
LAPACKE_dge_trans( LAPACK_COL_MAJOR, m, n, b_t, ldb_t, b, ldb );
123123
/* Release memory and exit */
124124
LAPACKE_free( b_t );
125125
exit_level_3:

0 commit comments

Comments
 (0)