Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions lapack-netlib/LAPACKE/src/lapacke_cgbcon.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

#include "lapacke_utils.h"

lapack_int LAPACKE_cgbcon( int matrix_layout, char norm, lapack_int n,
lapack_int API_SUFFIX(LAPACKE_cgbcon)( int matrix_layout, char norm, lapack_int n,
lapack_int kl, lapack_int ku,
const lapack_complex_float* ab, lapack_int ldab,
const lapack_int* ipiv, float anorm, float* rcond )
Expand All @@ -41,22 +41,22 @@ lapack_int LAPACKE_cgbcon( int matrix_layout, char norm, lapack_int n,
float* rwork = NULL;
lapack_complex_float* work = NULL;
if( matrix_layout != LAPACK_COL_MAJOR && matrix_layout != LAPACK_ROW_MAJOR ) {
LAPACKE_xerbla( "LAPACKE_cgbcon", -1 );
API_SUFFIX(LAPACKE_xerbla)( "LAPACKE_cgbcon", -1 );
return -1;
}
#ifndef LAPACK_DISABLE_NAN_CHECK
if( LAPACKE_get_nancheck() ) {
/* Optionally check input matrices for NaNs */
if( LAPACKE_cgb_nancheck( matrix_layout, n, n, kl, kl+ku, ab, ldab ) ) {
if( API_SUFFIX(LAPACKE_cgb_nancheck)( matrix_layout, n, n, kl, kl+ku, ab, ldab ) ) {
return -6;
}
if( LAPACKE_s_nancheck( 1, &anorm, 1 ) ) {
if( API_SUFFIX(LAPACKE_s_nancheck)( 1, &anorm, 1 ) ) {
return -9;
}
}
#endif
/* Allocate memory for working array(s) */
rwork = (float*)LAPACKE_malloc( sizeof(float) * MAX(1,2*n) );
rwork = (float*)LAPACKE_malloc( sizeof(float) * MAX(1,n) );
if( rwork == NULL ) {
info = LAPACK_WORK_MEMORY_ERROR;
goto exit_level_0;
Expand All @@ -68,15 +68,15 @@ lapack_int LAPACKE_cgbcon( int matrix_layout, char norm, lapack_int n,
goto exit_level_1;
}
/* Call middle-level interface */
info = LAPACKE_cgbcon_work( matrix_layout, norm, n, kl, ku, ab, ldab, ipiv,
info = API_SUFFIX(LAPACKE_cgbcon_work)( matrix_layout, norm, n, kl, ku, ab, ldab, ipiv,
anorm, rcond, work, rwork );
/* Release memory and exit */
LAPACKE_free( work );
exit_level_1:
LAPACKE_free( rwork );
exit_level_0:
if( info == LAPACK_WORK_MEMORY_ERROR ) {
LAPACKE_xerbla( "LAPACKE_cgbcon", info );
API_SUFFIX(LAPACKE_xerbla)( "LAPACKE_cgbcon", info );
}
return info;
}
28 changes: 14 additions & 14 deletions lapack-netlib/LAPACKE/src/lapacke_cgbrfsx.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

#include "lapacke_utils.h"

lapack_int LAPACKE_cgbrfsx( int matrix_layout, char trans, char equed,
lapack_int API_SUFFIX(LAPACKE_cgbrfsx)( int matrix_layout, char trans, char equed,
lapack_int n, lapack_int kl, lapack_int ku,
lapack_int nrhs, const lapack_complex_float* ab,
lapack_int ldab, const lapack_complex_float* afb,
Expand All @@ -48,43 +48,43 @@ lapack_int LAPACKE_cgbrfsx( int matrix_layout, char trans, char equed,
float* rwork = NULL;
lapack_complex_float* work = NULL;
if( matrix_layout != LAPACK_COL_MAJOR && matrix_layout != LAPACK_ROW_MAJOR ) {
LAPACKE_xerbla( "LAPACKE_cgbrfsx", -1 );
API_SUFFIX(LAPACKE_xerbla)( "LAPACKE_cgbrfsx", -1 );
return -1;
}
#ifndef LAPACK_DISABLE_NAN_CHECK
if( LAPACKE_get_nancheck() ) {
/* Optionally check input matrices for NaNs */
if( LAPACKE_cgb_nancheck( matrix_layout, n, n, kl, ku, ab, ldab ) ) {
if( API_SUFFIX(LAPACKE_cgb_nancheck)( matrix_layout, n, n, kl, ku, ab, ldab ) ) {
return -8;
}
if( LAPACKE_cgb_nancheck( matrix_layout, n, n, kl, kl+ku, afb, ldafb ) ) {
if( API_SUFFIX(LAPACKE_cgb_nancheck)( matrix_layout, n, n, kl, kl+ku, afb, ldafb ) ) {
return -10;
}
if( LAPACKE_cge_nancheck( matrix_layout, n, nrhs, b, ldb ) ) {
if( API_SUFFIX(LAPACKE_cge_nancheck)( matrix_layout, n, nrhs, b, ldb ) ) {
return -15;
}
if( LAPACKE_lsame( equed, 'b' ) || LAPACKE_lsame( equed, 'c' ) ) {
if( LAPACKE_s_nancheck( n, c, 1 ) ) {
if( API_SUFFIX(LAPACKE_lsame)( equed, 'b' ) || API_SUFFIX(LAPACKE_lsame)( equed, 'c' ) ) {
if( API_SUFFIX(LAPACKE_s_nancheck)( n, c, 1 ) ) {
return -14;
}
}
if( nparams>0 ) {
if( LAPACKE_s_nancheck( nparams, params, 1 ) ) {
if( API_SUFFIX(LAPACKE_s_nancheck)( nparams, params, 1 ) ) {
return -25;
}
}
if( LAPACKE_lsame( equed, 'b' ) || LAPACKE_lsame( equed, 'r' ) ) {
if( LAPACKE_s_nancheck( n, r, 1 ) ) {
if( API_SUFFIX(LAPACKE_lsame)( equed, 'b' ) || API_SUFFIX(LAPACKE_lsame)( equed, 'r' ) ) {
if( API_SUFFIX(LAPACKE_s_nancheck)( n, r, 1 ) ) {
return -13;
}
}
if( LAPACKE_cge_nancheck( matrix_layout, n, nrhs, x, ldx ) ) {
if( API_SUFFIX(LAPACKE_cge_nancheck)( matrix_layout, n, nrhs, x, ldx ) ) {
return -17;
}
}
#endif
/* Allocate memory for working array(s) */
rwork = (float*)LAPACKE_malloc( sizeof(float) * MAX(1,3*n) );
rwork = (float*)LAPACKE_malloc( sizeof(float) * MAX(1,2*n) );
if( rwork == NULL ) {
info = LAPACK_WORK_MEMORY_ERROR;
goto exit_level_0;
Expand All @@ -96,7 +96,7 @@ lapack_int LAPACKE_cgbrfsx( int matrix_layout, char trans, char equed,
goto exit_level_1;
}
/* Call middle-level interface */
info = LAPACKE_cgbrfsx_work( matrix_layout, trans, equed, n, kl, ku, nrhs,
info = API_SUFFIX(LAPACKE_cgbrfsx_work)( matrix_layout, trans, equed, n, kl, ku, nrhs,
ab, ldab, afb, ldafb, ipiv, r, c, b, ldb, x,
ldx, rcond, berr, n_err_bnds, err_bnds_norm,
err_bnds_comp, nparams, params, work, rwork );
Expand All @@ -106,7 +106,7 @@ lapack_int LAPACKE_cgbrfsx( int matrix_layout, char trans, char equed,
LAPACKE_free( rwork );
exit_level_0:
if( info == LAPACK_WORK_MEMORY_ERROR ) {
LAPACKE_xerbla( "LAPACKE_cgbrfsx", info );
API_SUFFIX(LAPACKE_xerbla)( "LAPACKE_cgbrfsx", info );
}
return info;
}
32 changes: 16 additions & 16 deletions lapack-netlib/LAPACKE/src/lapacke_cgbsvxx.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

#include "lapacke_utils.h"

lapack_int LAPACKE_cgbsvxx( int matrix_layout, char fact, char trans,
lapack_int API_SUFFIX(LAPACKE_cgbsvxx)( int matrix_layout, char fact, char trans,
lapack_int n, lapack_int kl, lapack_int ku,
lapack_int nrhs, lapack_complex_float* ab,
lapack_int ldab, lapack_complex_float* afb,
Expand All @@ -48,45 +48,45 @@ lapack_int LAPACKE_cgbsvxx( int matrix_layout, char fact, char trans,
float* rwork = NULL;
lapack_complex_float* work = NULL;
if( matrix_layout != LAPACK_COL_MAJOR && matrix_layout != LAPACK_ROW_MAJOR ) {
LAPACKE_xerbla( "LAPACKE_cgbsvxx", -1 );
API_SUFFIX(LAPACKE_xerbla)( "LAPACKE_cgbsvxx", -1 );
return -1;
}
#ifndef LAPACK_DISABLE_NAN_CHECK
if( LAPACKE_get_nancheck() ) {
/* Optionally check input matrices for NaNs */
if( LAPACKE_cgb_nancheck( matrix_layout, n, n, kl, ku, ab, ldab ) ) {
if( API_SUFFIX(LAPACKE_cgb_nancheck)( matrix_layout, n, n, kl, ku, ab, ldab ) ) {
return -8;
}
if( LAPACKE_lsame( fact, 'f' ) ) {
if( LAPACKE_cgb_nancheck( matrix_layout, n, n, kl, kl+ku, afb,
if( API_SUFFIX(LAPACKE_lsame)( fact, 'f' ) ) {
if( API_SUFFIX(LAPACKE_cgb_nancheck)( matrix_layout, n, n, kl, kl+ku, afb,
ldafb ) ) {
return -10;
}
}
if( LAPACKE_cge_nancheck( matrix_layout, n, nrhs, b, ldb ) ) {
if( API_SUFFIX(LAPACKE_cge_nancheck)( matrix_layout, n, nrhs, b, ldb ) ) {
return -16;
}
if( LAPACKE_lsame( fact, 'f' ) && ( LAPACKE_lsame( *equed, 'b' ) ||
LAPACKE_lsame( *equed, 'c' ) ) ) {
if( LAPACKE_s_nancheck( n, c, 1 ) ) {
if( API_SUFFIX(LAPACKE_lsame)( fact, 'f' ) && ( API_SUFFIX(LAPACKE_lsame)( *equed, 'b' ) ||
API_SUFFIX(LAPACKE_lsame)( *equed, 'c' ) ) ) {
if( API_SUFFIX(LAPACKE_s_nancheck)( n, c, 1 ) ) {
return -15;
}
}
if( nparams>0 ) {
if( LAPACKE_s_nancheck( nparams, params, 1 ) ) {
if( API_SUFFIX(LAPACKE_s_nancheck)( nparams, params, 1 ) ) {
return -27;
}
}
if( LAPACKE_lsame( fact, 'f' ) && ( LAPACKE_lsame( *equed, 'b' ) ||
LAPACKE_lsame( *equed, 'r' ) ) ) {
if( LAPACKE_s_nancheck( n, r, 1 ) ) {
if( API_SUFFIX(LAPACKE_lsame)( fact, 'f' ) && ( API_SUFFIX(LAPACKE_lsame)( *equed, 'b' ) ||
API_SUFFIX(LAPACKE_lsame)( *equed, 'r' ) ) ) {
if( API_SUFFIX(LAPACKE_s_nancheck)( n, r, 1 ) ) {
return -14;
}
}
}
#endif
/* Allocate memory for working array(s) */
rwork = (float*)LAPACKE_malloc( sizeof(float) * MAX(1,3*n) );
rwork = (float*)LAPACKE_malloc( sizeof(float) * MAX(1,2*n) );
if( rwork == NULL ) {
info = LAPACK_WORK_MEMORY_ERROR;
goto exit_level_0;
Expand All @@ -98,7 +98,7 @@ lapack_int LAPACKE_cgbsvxx( int matrix_layout, char fact, char trans,
goto exit_level_1;
}
/* Call middle-level interface */
info = LAPACKE_cgbsvxx_work( matrix_layout, fact, trans, n, kl, ku, nrhs, ab,
info = API_SUFFIX(LAPACKE_cgbsvxx_work)( matrix_layout, fact, trans, n, kl, ku, nrhs, ab,
ldab, afb, ldafb, ipiv, equed, r, c, b, ldb, x,
ldx, rcond, rpvgrw, berr, n_err_bnds,
err_bnds_norm, err_bnds_comp, nparams, params,
Expand All @@ -109,7 +109,7 @@ lapack_int LAPACKE_cgbsvxx( int matrix_layout, char fact, char trans,
LAPACKE_free( rwork );
exit_level_0:
if( info == LAPACK_WORK_MEMORY_ERROR ) {
LAPACKE_xerbla( "LAPACKE_cgbsvxx", info );
API_SUFFIX(LAPACKE_xerbla)( "LAPACKE_cgbsvxx", info );
}
return info;
}
28 changes: 14 additions & 14 deletions lapack-netlib/LAPACKE/src/lapacke_cgerfsx.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

#include "lapacke_utils.h"

lapack_int LAPACKE_cgerfsx( int matrix_layout, char trans, char equed,
lapack_int API_SUFFIX(LAPACKE_cgerfsx)( int matrix_layout, char trans, char equed,
lapack_int n, lapack_int nrhs,
const lapack_complex_float* a, lapack_int lda,
const lapack_complex_float* af, lapack_int ldaf,
Expand All @@ -48,43 +48,43 @@ lapack_int LAPACKE_cgerfsx( int matrix_layout, char trans, char equed,
float* rwork = NULL;
lapack_complex_float* work = NULL;
if( matrix_layout != LAPACK_COL_MAJOR && matrix_layout != LAPACK_ROW_MAJOR ) {
LAPACKE_xerbla( "LAPACKE_cgerfsx", -1 );
API_SUFFIX(LAPACKE_xerbla)( "LAPACKE_cgerfsx", -1 );
return -1;
}
#ifndef LAPACK_DISABLE_NAN_CHECK
if( LAPACKE_get_nancheck() ) {
/* Optionally check input matrices for NaNs */
if( LAPACKE_cge_nancheck( matrix_layout, n, n, a, lda ) ) {
if( API_SUFFIX(LAPACKE_cge_nancheck)( matrix_layout, n, n, a, lda ) ) {
return -6;
}
if( LAPACKE_cge_nancheck( matrix_layout, n, n, af, ldaf ) ) {
if( API_SUFFIX(LAPACKE_cge_nancheck)( matrix_layout, n, n, af, ldaf ) ) {
return -8;
}
if( LAPACKE_cge_nancheck( matrix_layout, n, nrhs, b, ldb ) ) {
if( API_SUFFIX(LAPACKE_cge_nancheck)( matrix_layout, n, nrhs, b, ldb ) ) {
return -13;
}
if( LAPACKE_lsame( equed, 'b' ) || LAPACKE_lsame( equed, 'c' ) ) {
if( LAPACKE_s_nancheck( n, c, 1 ) ) {
if( API_SUFFIX(LAPACKE_lsame)( equed, 'b' ) || API_SUFFIX(LAPACKE_lsame)( equed, 'c' ) ) {
if( API_SUFFIX(LAPACKE_s_nancheck)( n, c, 1 ) ) {
return -12;
}
}
if( nparams>0 ) {
if( LAPACKE_s_nancheck( nparams, params, 1 ) ) {
if( API_SUFFIX(LAPACKE_s_nancheck)( nparams, params, 1 ) ) {
return -23;
}
}
if( LAPACKE_lsame( equed, 'b' ) || LAPACKE_lsame( equed, 'r' ) ) {
if( LAPACKE_s_nancheck( n, r, 1 ) ) {
if( API_SUFFIX(LAPACKE_lsame)( equed, 'b' ) || API_SUFFIX(LAPACKE_lsame)( equed, 'r' ) ) {
if( API_SUFFIX(LAPACKE_s_nancheck)( n, r, 1 ) ) {
return -11;
}
}
if( LAPACKE_cge_nancheck( matrix_layout, n, nrhs, x, ldx ) ) {
if( API_SUFFIX(LAPACKE_cge_nancheck)( matrix_layout, n, nrhs, x, ldx ) ) {
return -15;
}
}
#endif
/* Allocate memory for working array(s) */
rwork = (float*)LAPACKE_malloc( sizeof(float) * MAX(1,3*n) );
rwork = (float*)LAPACKE_malloc( sizeof(float) * MAX(1,2*n) );
if( rwork == NULL ) {
info = LAPACK_WORK_MEMORY_ERROR;
goto exit_level_0;
Expand All @@ -96,7 +96,7 @@ lapack_int LAPACKE_cgerfsx( int matrix_layout, char trans, char equed,
goto exit_level_1;
}
/* Call middle-level interface */
info = LAPACKE_cgerfsx_work( matrix_layout, trans, equed, n, nrhs, a, lda,
info = API_SUFFIX(LAPACKE_cgerfsx_work)( matrix_layout, trans, equed, n, nrhs, a, lda,
af, ldaf, ipiv, r, c, b, ldb, x, ldx, rcond,
berr, n_err_bnds, err_bnds_norm, err_bnds_comp,
nparams, params, work, rwork );
Expand All @@ -106,7 +106,7 @@ lapack_int LAPACKE_cgerfsx( int matrix_layout, char trans, char equed,
LAPACKE_free( rwork );
exit_level_0:
if( info == LAPACK_WORK_MEMORY_ERROR ) {
LAPACKE_xerbla( "LAPACKE_cgerfsx", info );
API_SUFFIX(LAPACKE_xerbla)( "LAPACKE_cgerfsx", info );
}
return info;
}
32 changes: 16 additions & 16 deletions lapack-netlib/LAPACKE/src/lapacke_cgesvxx.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

#include "lapacke_utils.h"

lapack_int LAPACKE_cgesvxx( int matrix_layout, char fact, char trans,
lapack_int API_SUFFIX(LAPACKE_cgesvxx)( int matrix_layout, char fact, char trans,
lapack_int n, lapack_int nrhs,
lapack_complex_float* a, lapack_int lda,
lapack_complex_float* af, lapack_int ldaf,
Expand All @@ -48,44 +48,44 @@ lapack_int LAPACKE_cgesvxx( int matrix_layout, char fact, char trans,
float* rwork = NULL;
lapack_complex_float* work = NULL;
if( matrix_layout != LAPACK_COL_MAJOR && matrix_layout != LAPACK_ROW_MAJOR ) {
LAPACKE_xerbla( "LAPACKE_cgesvxx", -1 );
API_SUFFIX(LAPACKE_xerbla)( "LAPACKE_cgesvxx", -1 );
return -1;
}
#ifndef LAPACK_DISABLE_NAN_CHECK
if( LAPACKE_get_nancheck() ) {
/* Optionally check input matrices for NaNs */
if( LAPACKE_cge_nancheck( matrix_layout, n, n, a, lda ) ) {
if( API_SUFFIX(LAPACKE_cge_nancheck)( matrix_layout, n, n, a, lda ) ) {
return -6;
}
if( LAPACKE_lsame( fact, 'f' ) ) {
if( LAPACKE_cge_nancheck( matrix_layout, n, n, af, ldaf ) ) {
if( API_SUFFIX(LAPACKE_lsame)( fact, 'f' ) ) {
if( API_SUFFIX(LAPACKE_cge_nancheck)( matrix_layout, n, n, af, ldaf ) ) {
return -8;
}
}
if( LAPACKE_cge_nancheck( matrix_layout, n, nrhs, b, ldb ) ) {
if( API_SUFFIX(LAPACKE_cge_nancheck)( matrix_layout, n, nrhs, b, ldb ) ) {
return -14;
}
if( LAPACKE_lsame( fact, 'f' ) && ( LAPACKE_lsame( *equed, 'b' ) ||
LAPACKE_lsame( *equed, 'c' ) ) ) {
if( LAPACKE_s_nancheck( n, c, 1 ) ) {
if( API_SUFFIX(LAPACKE_lsame)( fact, 'f' ) && ( API_SUFFIX(LAPACKE_lsame)( *equed, 'b' ) ||
API_SUFFIX(LAPACKE_lsame)( *equed, 'c' ) ) ) {
if( API_SUFFIX(LAPACKE_s_nancheck)( n, c, 1 ) ) {
return -13;
}
}
if( nparams>0 ) {
if( LAPACKE_s_nancheck( nparams, params, 1 ) ) {
if( API_SUFFIX(LAPACKE_s_nancheck)( nparams, params, 1 ) ) {
return -25;
}
}
if( LAPACKE_lsame( fact, 'f' ) && ( LAPACKE_lsame( *equed, 'b' ) ||
LAPACKE_lsame( *equed, 'r' ) ) ) {
if( LAPACKE_s_nancheck( n, r, 1 ) ) {
if( API_SUFFIX(LAPACKE_lsame)( fact, 'f' ) && ( API_SUFFIX(LAPACKE_lsame)( *equed, 'b' ) ||
API_SUFFIX(LAPACKE_lsame)( *equed, 'r' ) ) ) {
if( API_SUFFIX(LAPACKE_s_nancheck)( n, r, 1 ) ) {
return -12;
}
}
}
#endif
/* Allocate memory for working array(s) */
rwork = (float*)LAPACKE_malloc( sizeof(float) * MAX(1,3*n) );
rwork = (float*)LAPACKE_malloc( sizeof(float) * MAX(1,2*n) );
if( rwork == NULL ) {
info = LAPACK_WORK_MEMORY_ERROR;
goto exit_level_0;
Expand All @@ -97,7 +97,7 @@ lapack_int LAPACKE_cgesvxx( int matrix_layout, char fact, char trans,
goto exit_level_1;
}
/* Call middle-level interface */
info = LAPACKE_cgesvxx_work( matrix_layout, fact, trans, n, nrhs, a, lda, af,
info = API_SUFFIX(LAPACKE_cgesvxx_work)( matrix_layout, fact, trans, n, nrhs, a, lda, af,
ldaf, ipiv, equed, r, c, b, ldb, x, ldx, rcond,
rpvgrw, berr, n_err_bnds, err_bnds_norm,
err_bnds_comp, nparams, params, work, rwork );
Expand All @@ -107,7 +107,7 @@ lapack_int LAPACKE_cgesvxx( int matrix_layout, char fact, char trans,
LAPACKE_free( rwork );
exit_level_0:
if( info == LAPACK_WORK_MEMORY_ERROR ) {
LAPACKE_xerbla( "LAPACKE_cgesvxx", info );
API_SUFFIX(LAPACKE_xerbla)( "LAPACKE_cgesvxx", info );
}
return info;
}
Loading
Loading