Skip to content

Commit

Permalink
Merge pull request #1058 from Reference-LAPACK/revert-1046-fixup-1042
Browse files Browse the repository at this point in the history
Revert "Add a few forgotten API_SUFFIX wrappers in the recently changed LAPACKE ?TFSM"
  • Loading branch information
weslleyspereira authored Oct 2, 2024
2 parents 847c5a0 + dd627fc commit 1ae4bd7
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion LAPACKE/src/lapacke_ctfsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ lapack_int API_SUFFIX(LAPACKE_ctfsm)( int matrix_layout, char transr, char side,
#ifndef LAPACK_DISABLE_NAN_CHECK
if( LAPACKE_get_nancheck() ) {
lapack_int mn = m;
if( API_SUFFIX(LAPACKE_lsame)( side, 'r' ) ) mn = n;
if( LAPACKE_lsame( side, 'r' ) ) mn = n;
/* Optionally check input matrices for NaNs */
if( IS_C_NONZERO(alpha) ) {
if( API_SUFFIX(LAPACKE_ctf_nancheck)( matrix_layout, transr, uplo, diag, mn, a ) ) {
Expand Down
2 changes: 1 addition & 1 deletion LAPACKE/src/lapacke_ctfsm_work.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ lapack_int API_SUFFIX(LAPACKE_ctfsm_work)( int matrix_layout, char transr, char
lapack_int mn = m;
lapack_complex_float* b_t = NULL;
lapack_complex_float* a_t = NULL;
if( API_SUFFIX(LAPACKE_lsame)( side, 'r' ) ) mn = n;
if( LAPACKE_lsame( side, 'r' ) ) mn = n;
/* Check leading dimension(s) */
if( ldb < m ) {
info = -12;
Expand Down
2 changes: 1 addition & 1 deletion LAPACKE/src/lapacke_dtfsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ lapack_int API_SUFFIX(LAPACKE_dtfsm)( int matrix_layout, char transr, char side,
if( LAPACKE_get_nancheck() ) {
/* Optionally check input matrices for NaNs */
lapack_int mn = m;
if( API_SUFFIX(LAPACKE_lsame)( side, 'r' ) ) mn = n;
if( LAPACKE_lsame( side, 'r' ) ) mn = n;
if( IS_D_NONZERO(alpha) ) {
if( API_SUFFIX(LAPACKE_dtf_nancheck)( matrix_layout, transr, uplo, diag, mn, a ) ) {
return -10;
Expand Down
2 changes: 1 addition & 1 deletion LAPACKE/src/lapacke_dtfsm_work.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ lapack_int API_SUFFIX(LAPACKE_dtfsm_work)( int matrix_layout, char transr, char
lapack_int mn = m;
double* b_t = NULL;
double* a_t = NULL;
if( API_SUFFIX(LAPACKE_lsame)( side, 'r' ) ) mn = n;
if( LAPACKE_lsame( side, 'r' ) ) mn = n;
/* Check leading dimension(s) */
if( ldb < m ) {
info = -12;
Expand Down
2 changes: 1 addition & 1 deletion LAPACKE/src/lapacke_stfsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ lapack_int API_SUFFIX(LAPACKE_stfsm)( int matrix_layout, char transr, char side,
#ifndef LAPACK_DISABLE_NAN_CHECK
if( LAPACKE_get_nancheck() ) {
lapack_int mn = m;
if( API_SUFFIX(LAPACKE_lsame)( side, 'r' ) ) mn = n;
if( LAPACKE_lsame( side, 'r' ) ) mn = n;
/* Optionally check input matrices for NaNs */
if( IS_S_NONZERO(alpha) ) {
if( API_SUFFIX(LAPACKE_stf_nancheck)( matrix_layout, transr, uplo, diag, mn, a ) ) {
Expand Down
2 changes: 1 addition & 1 deletion LAPACKE/src/lapacke_stfsm_work.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ lapack_int API_SUFFIX(LAPACKE_stfsm_work)( int matrix_layout, char transr, char
lapack_int mn = MAX(1,m);
float* b_t = NULL;
float* a_t = NULL;
if( API_SUFFIX(LAPACKE_lsame)( side, 'r' ) ) mn = n;
if( LAPACKE_lsame( side, 'r' ) ) mn = n;
/* Check leading dimension(s) */
if( ldb < m ) {
info = -12;
Expand Down
2 changes: 1 addition & 1 deletion LAPACKE/src/lapacke_ztfsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ lapack_int API_SUFFIX(LAPACKE_ztfsm)( int matrix_layout, char transr, char side,
#ifndef LAPACK_DISABLE_NAN_CHECK
if( LAPACKE_get_nancheck() ) {
lapack_int mn = m;
if( API_SUFFIX(LAPACKE_lsame)( side, 'r' ) ) mn = n;
if( LAPACKE_lsame( side, 'r' ) ) mn = n;
/* Optionally check input matrices for NaNs */
if( IS_Z_NONZERO(alpha) ) {
if( API_SUFFIX(LAPACKE_ztf_nancheck)( matrix_layout, transr, uplo, diag, mn, a ) ) {
Expand Down
4 changes: 2 additions & 2 deletions LAPACKE/src/lapacke_ztfsm_work.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ lapack_int API_SUFFIX(LAPACKE_ztfsm_work)( int matrix_layout, char transr, char
lapack_int mn = m;
lapack_complex_double* b_t = NULL;
lapack_complex_double* a_t = NULL;
if( API_SUFFIX(LAPACKE_lsame)( side, 'r' ) ) mn = n;
if( LAPACKE_lsame( side, 'r' ) ) mn = n;
/* Check leading dimension(s) */
if( ldb < m ) {
info = -12;
Expand Down Expand Up @@ -86,7 +86,7 @@ lapack_int API_SUFFIX(LAPACKE_ztfsm_work)( int matrix_layout, char transr, char
b_t, &ldb_t );
info = 0; /* LAPACK call is ok! */
/* Transpose output matrices */
API_SUFFIX(LAPACKE_zge_trans)( LAPACK_COL_MAJOR, m, n, b_t, ldb_t, b, ldb );
LAPACKE_zge_trans( LAPACK_COL_MAJOR, m, n, b_t, ldb_t, b, ldb );
/* Release memory and exit */
if( IS_Z_NONZERO(alpha) ) {
LAPACKE_free( a_t );
Expand Down

0 comments on commit 1ae4bd7

Please sign in to comment.