LAPACKE interfaces for Aasen's functions now call ?sytrf_aa and ?hetrf_aa instead of ?sytrf and ?hetrftags/v0.3.1
@@ -41,7 +41,7 @@ lapack_int LAPACKE_chetrf_aa_work( int matrix_layout, char uplo, lapack_int n, | |||||
lapack_int info = 0; | lapack_int info = 0; | ||||
if( matrix_layout == LAPACK_COL_MAJOR ) { | if( matrix_layout == LAPACK_COL_MAJOR ) { | ||||
/* Call LAPACK function and adjust info */ | /* Call LAPACK function and adjust info */ | ||||
LAPACK_chetrf( &uplo, &n, a, &lda, ipiv, work, &lwork, &info ); | |||||
LAPACK_chetrf_aa( &uplo, &n, a, &lda, ipiv, work, &lwork, &info ); | |||||
if( info < 0 ) { | if( info < 0 ) { | ||||
info = info - 1; | info = info - 1; | ||||
} | } | ||||
@@ -56,7 +56,7 @@ lapack_int LAPACKE_chetrf_aa_work( int matrix_layout, char uplo, lapack_int n, | |||||
} | } | ||||
/* Query optimal working array(s) size if requested */ | /* Query optimal working array(s) size if requested */ | ||||
if( lwork == -1 ) { | if( lwork == -1 ) { | ||||
LAPACK_chetrf( &uplo, &n, a, &lda_t, ipiv, work, &lwork, &info ); | |||||
LAPACK_chetrf_aa( &uplo, &n, a, &lda_t, ipiv, work, &lwork, &info ); | |||||
return (info < 0) ? (info - 1) : info; | return (info < 0) ? (info - 1) : info; | ||||
} | } | ||||
/* Allocate memory for temporary array(s) */ | /* Allocate memory for temporary array(s) */ | ||||
@@ -69,7 +69,7 @@ lapack_int LAPACKE_chetrf_aa_work( int matrix_layout, char uplo, lapack_int n, | |||||
/* Transpose input matrices */ | /* Transpose input matrices */ | ||||
LAPACKE_che_trans( matrix_layout, uplo, n, a, lda, a_t, lda_t ); | LAPACKE_che_trans( matrix_layout, uplo, n, a, lda, a_t, lda_t ); | ||||
/* Call LAPACK function and adjust info */ | /* Call LAPACK function and adjust info */ | ||||
LAPACK_chetrf( &uplo, &n, a_t, &lda_t, ipiv, work, &lwork, &info ); | |||||
LAPACK_chetrf_aa( &uplo, &n, a_t, &lda_t, ipiv, work, &lwork, &info ); | |||||
if( info < 0 ) { | if( info < 0 ) { | ||||
info = info - 1; | info = info - 1; | ||||
} | } | ||||
@@ -41,7 +41,7 @@ lapack_int LAPACKE_csytrf_aa_work( int matrix_layout, char uplo, lapack_int n, | |||||
lapack_int info = 0; | lapack_int info = 0; | ||||
if( matrix_layout == LAPACK_COL_MAJOR ) { | if( matrix_layout == LAPACK_COL_MAJOR ) { | ||||
/* Call LAPACK function and adjust info */ | /* Call LAPACK function and adjust info */ | ||||
LAPACK_csytrf( &uplo, &n, a, &lda, ipiv, work, &lwork, &info ); | |||||
LAPACK_csytrf_aa( &uplo, &n, a, &lda, ipiv, work, &lwork, &info ); | |||||
if( info < 0 ) { | if( info < 0 ) { | ||||
info = info - 1; | info = info - 1; | ||||
} | } | ||||
@@ -56,7 +56,7 @@ lapack_int LAPACKE_csytrf_aa_work( int matrix_layout, char uplo, lapack_int n, | |||||
} | } | ||||
/* Query optimal working array(s) size if requested */ | /* Query optimal working array(s) size if requested */ | ||||
if( lwork == -1 ) { | if( lwork == -1 ) { | ||||
LAPACK_csytrf( &uplo, &n, a, &lda_t, ipiv, work, &lwork, &info ); | |||||
LAPACK_csytrf_aa( &uplo, &n, a, &lda_t, ipiv, work, &lwork, &info ); | |||||
return (info < 0) ? (info - 1) : info; | return (info < 0) ? (info - 1) : info; | ||||
} | } | ||||
/* Allocate memory for temporary array(s) */ | /* Allocate memory for temporary array(s) */ | ||||
@@ -69,7 +69,7 @@ lapack_int LAPACKE_csytrf_aa_work( int matrix_layout, char uplo, lapack_int n, | |||||
/* Transpose input matrices */ | /* Transpose input matrices */ | ||||
LAPACKE_csy_trans( matrix_layout, uplo, n, a, lda, a_t, lda_t ); | LAPACKE_csy_trans( matrix_layout, uplo, n, a, lda, a_t, lda_t ); | ||||
/* Call LAPACK function and adjust info */ | /* Call LAPACK function and adjust info */ | ||||
LAPACK_csytrf( &uplo, &n, a_t, &lda_t, ipiv, work, &lwork, &info ); | |||||
LAPACK_csytrf_aa( &uplo, &n, a_t, &lda_t, ipiv, work, &lwork, &info ); | |||||
if( info < 0 ) { | if( info < 0 ) { | ||||
info = info - 1; | info = info - 1; | ||||
} | } | ||||
@@ -40,7 +40,7 @@ lapack_int LAPACKE_dsytrf_aa_work( int matrix_layout, char uplo, lapack_int n, | |||||
lapack_int info = 0; | lapack_int info = 0; | ||||
if( matrix_layout == LAPACK_COL_MAJOR ) { | if( matrix_layout == LAPACK_COL_MAJOR ) { | ||||
/* Call LAPACK function and adjust info */ | /* Call LAPACK function and adjust info */ | ||||
LAPACK_dsytrf( &uplo, &n, a, &lda, ipiv, work, &lwork, &info ); | |||||
LAPACK_dsytrf_aa( &uplo, &n, a, &lda, ipiv, work, &lwork, &info ); | |||||
if( info < 0 ) { | if( info < 0 ) { | ||||
info = info - 1; | info = info - 1; | ||||
} | } | ||||
@@ -55,7 +55,7 @@ lapack_int LAPACKE_dsytrf_aa_work( int matrix_layout, char uplo, lapack_int n, | |||||
} | } | ||||
/* Query optimal working array(s) size if requested */ | /* Query optimal working array(s) size if requested */ | ||||
if( lwork == -1 ) { | if( lwork == -1 ) { | ||||
LAPACK_dsytrf( &uplo, &n, a, &lda_t, ipiv, work, &lwork, &info ); | |||||
LAPACK_dsytrf_aa( &uplo, &n, a, &lda_t, ipiv, work, &lwork, &info ); | |||||
return (info < 0) ? (info - 1) : info; | return (info < 0) ? (info - 1) : info; | ||||
} | } | ||||
/* Allocate memory for temporary array(s) */ | /* Allocate memory for temporary array(s) */ | ||||
@@ -67,7 +67,7 @@ lapack_int LAPACKE_dsytrf_aa_work( int matrix_layout, char uplo, lapack_int n, | |||||
/* Transpose input matrices */ | /* Transpose input matrices */ | ||||
LAPACKE_dsy_trans( matrix_layout, uplo, n, a, lda, a_t, lda_t ); | LAPACKE_dsy_trans( matrix_layout, uplo, n, a, lda, a_t, lda_t ); | ||||
/* Call LAPACK function and adjust info */ | /* Call LAPACK function and adjust info */ | ||||
LAPACK_dsytrf( &uplo, &n, a_t, &lda_t, ipiv, work, &lwork, &info ); | |||||
LAPACK_dsytrf_aa( &uplo, &n, a_t, &lda_t, ipiv, work, &lwork, &info ); | |||||
if( info < 0 ) { | if( info < 0 ) { | ||||
info = info - 1; | info = info - 1; | ||||
} | } | ||||
@@ -40,7 +40,7 @@ lapack_int LAPACKE_ssytrf_aa_work( int matrix_layout, char uplo, lapack_int n, | |||||
lapack_int info = 0; | lapack_int info = 0; | ||||
if( matrix_layout == LAPACK_COL_MAJOR ) { | if( matrix_layout == LAPACK_COL_MAJOR ) { | ||||
/* Call LAPACK function and adjust info */ | /* Call LAPACK function and adjust info */ | ||||
LAPACK_ssytrf( &uplo, &n, a, &lda, ipiv, work, &lwork, &info ); | |||||
LAPACK_ssytrf_aa( &uplo, &n, a, &lda, ipiv, work, &lwork, &info ); | |||||
if( info < 0 ) { | if( info < 0 ) { | ||||
info = info - 1; | info = info - 1; | ||||
} | } | ||||
@@ -55,7 +55,7 @@ lapack_int LAPACKE_ssytrf_aa_work( int matrix_layout, char uplo, lapack_int n, | |||||
} | } | ||||
/* Query optimal working array(s) size if requested */ | /* Query optimal working array(s) size if requested */ | ||||
if( lwork == -1 ) { | if( lwork == -1 ) { | ||||
LAPACK_ssytrf( &uplo, &n, a, &lda_t, ipiv, work, &lwork, &info ); | |||||
LAPACK_ssytrf_aa( &uplo, &n, a, &lda_t, ipiv, work, &lwork, &info ); | |||||
return (info < 0) ? (info - 1) : info; | return (info < 0) ? (info - 1) : info; | ||||
} | } | ||||
/* Allocate memory for temporary array(s) */ | /* Allocate memory for temporary array(s) */ | ||||
@@ -67,7 +67,7 @@ lapack_int LAPACKE_ssytrf_aa_work( int matrix_layout, char uplo, lapack_int n, | |||||
/* Transpose input matrices */ | /* Transpose input matrices */ | ||||
LAPACKE_ssy_trans( matrix_layout, uplo, n, a, lda, a_t, lda_t ); | LAPACKE_ssy_trans( matrix_layout, uplo, n, a, lda, a_t, lda_t ); | ||||
/* Call LAPACK function and adjust info */ | /* Call LAPACK function and adjust info */ | ||||
LAPACK_ssytrf( &uplo, &n, a_t, &lda_t, ipiv, work, &lwork, &info ); | |||||
LAPACK_ssytrf_aa( &uplo, &n, a_t, &lda_t, ipiv, work, &lwork, &info ); | |||||
if( info < 0 ) { | if( info < 0 ) { | ||||
info = info - 1; | info = info - 1; | ||||
} | } | ||||
@@ -41,7 +41,7 @@ lapack_int LAPACKE_zhetrf_aa_work( int matrix_layout, char uplo, lapack_int n, | |||||
lapack_int info = 0; | lapack_int info = 0; | ||||
if( matrix_layout == LAPACK_COL_MAJOR ) { | if( matrix_layout == LAPACK_COL_MAJOR ) { | ||||
/* Call LAPACK function and adjust info */ | /* Call LAPACK function and adjust info */ | ||||
LAPACK_zhetrf( &uplo, &n, a, &lda, ipiv, work, &lwork, &info ); | |||||
LAPACK_zhetrf_aa( &uplo, &n, a, &lda, ipiv, work, &lwork, &info ); | |||||
if( info < 0 ) { | if( info < 0 ) { | ||||
info = info - 1; | info = info - 1; | ||||
} | } | ||||
@@ -56,7 +56,7 @@ lapack_int LAPACKE_zhetrf_aa_work( int matrix_layout, char uplo, lapack_int n, | |||||
} | } | ||||
/* Query optimal working array(s) size if requested */ | /* Query optimal working array(s) size if requested */ | ||||
if( lwork == -1 ) { | if( lwork == -1 ) { | ||||
LAPACK_zhetrf( &uplo, &n, a, &lda_t, ipiv, work, &lwork, &info ); | |||||
LAPACK_zhetrf_aa( &uplo, &n, a, &lda_t, ipiv, work, &lwork, &info ); | |||||
return (info < 0) ? (info - 1) : info; | return (info < 0) ? (info - 1) : info; | ||||
} | } | ||||
/* Allocate memory for temporary array(s) */ | /* Allocate memory for temporary array(s) */ | ||||
@@ -69,7 +69,7 @@ lapack_int LAPACKE_zhetrf_aa_work( int matrix_layout, char uplo, lapack_int n, | |||||
/* Transpose input matrices */ | /* Transpose input matrices */ | ||||
LAPACKE_zhe_trans( matrix_layout, uplo, n, a, lda, a_t, lda_t ); | LAPACKE_zhe_trans( matrix_layout, uplo, n, a, lda, a_t, lda_t ); | ||||
/* Call LAPACK function and adjust info */ | /* Call LAPACK function and adjust info */ | ||||
LAPACK_zhetrf( &uplo, &n, a_t, &lda_t, ipiv, work, &lwork, &info ); | |||||
LAPACK_zhetrf_aa( &uplo, &n, a_t, &lda_t, ipiv, work, &lwork, &info ); | |||||
if( info < 0 ) { | if( info < 0 ) { | ||||
info = info - 1; | info = info - 1; | ||||
} | } | ||||
@@ -41,7 +41,7 @@ lapack_int LAPACKE_zsytrf_aa_work( int matrix_layout, char uplo, lapack_int n, | |||||
lapack_int info = 0; | lapack_int info = 0; | ||||
if( matrix_layout == LAPACK_COL_MAJOR ) { | if( matrix_layout == LAPACK_COL_MAJOR ) { | ||||
/* Call LAPACK function and adjust info */ | /* Call LAPACK function and adjust info */ | ||||
LAPACK_zsytrf( &uplo, &n, a, &lda, ipiv, work, &lwork, &info ); | |||||
LAPACK_zsytrf_aa( &uplo, &n, a, &lda, ipiv, work, &lwork, &info ); | |||||
if( info < 0 ) { | if( info < 0 ) { | ||||
info = info - 1; | info = info - 1; | ||||
} | } | ||||
@@ -56,7 +56,7 @@ lapack_int LAPACKE_zsytrf_aa_work( int matrix_layout, char uplo, lapack_int n, | |||||
} | } | ||||
/* Query optimal working array(s) size if requested */ | /* Query optimal working array(s) size if requested */ | ||||
if( lwork == -1 ) { | if( lwork == -1 ) { | ||||
LAPACK_zsytrf( &uplo, &n, a, &lda_t, ipiv, work, &lwork, &info ); | |||||
LAPACK_zsytrf_aa( &uplo, &n, a, &lda_t, ipiv, work, &lwork, &info ); | |||||
return (info < 0) ? (info - 1) : info; | return (info < 0) ? (info - 1) : info; | ||||
} | } | ||||
/* Allocate memory for temporary array(s) */ | /* Allocate memory for temporary array(s) */ | ||||
@@ -69,7 +69,7 @@ lapack_int LAPACKE_zsytrf_aa_work( int matrix_layout, char uplo, lapack_int n, | |||||
/* Transpose input matrices */ | /* Transpose input matrices */ | ||||
LAPACKE_zsy_trans( matrix_layout, uplo, n, a, lda, a_t, lda_t ); | LAPACKE_zsy_trans( matrix_layout, uplo, n, a, lda, a_t, lda_t ); | ||||
/* Call LAPACK function and adjust info */ | /* Call LAPACK function and adjust info */ | ||||
LAPACK_zsytrf( &uplo, &n, a_t, &lda_t, ipiv, work, &lwork, &info ); | |||||
LAPACK_zsytrf_aa( &uplo, &n, a_t, &lda_t, ipiv, work, &lwork, &info ); | |||||
if( info < 0 ) { | if( info < 0 ) { | ||||
info = info - 1; | info = info - 1; | ||||
} | } | ||||