@@ -49,8 +49,8 @@ lapack_int LAPACKE_dtpmqrt_work( int matrix_layout, char side, char trans,
49
49
}
50
50
} else if ( matrix_layout == LAPACK_ROW_MAJOR ) {
51
51
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 ; }
54
54
else {
55
55
info = -2 ;
56
56
LAPACKE_xerbla ( "LAPACKE_dtpmqrt_work" , info );
@@ -118,8 +118,8 @@ lapack_int LAPACKE_dtpmqrt_work( int matrix_layout, char side, char trans,
118
118
info = info - 1 ;
119
119
}
120
120
/* 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 );
123
123
/* Release memory and exit */
124
124
LAPACKE_free ( b_t );
125
125
exit_level_3 :
0 commit comments