LAPACK  3.8.0
LAPACK: Linear Algebra PACKage

◆ LAPACKE_zhetrs_aa_2stage()

lapack_int LAPACKE_zhetrs_aa_2stage ( int  matrix_layout,
char  uplo,
lapack_int  n,
lapack_int  nrhs,
lapack_complex_double a,
lapack_int  lda,
lapack_complex_double tb,
lapack_int  ltb,
lapack_int ipiv,
lapack_int ipiv2,
lapack_complex_double b,
lapack_int  ldb 
)

Definition at line 36 of file lapacke_zhetrs_aa_2stage.c.

41 {
42  lapack_int info = 0;
43  if( matrix_layout != LAPACK_COL_MAJOR && matrix_layout != LAPACK_ROW_MAJOR ) {
44  LAPACKE_xerbla( "LAPACKE_zhetrs_aa_2stage", -1 );
45  return -1;
46  }
47 #ifndef LAPACK_DISABLE_NAN_CHECK
48  if( LAPACKE_get_nancheck() ) {
49  /* Optionally check input matrices for NaNs */
50  if( LAPACKE_zhe_nancheck( matrix_layout, uplo, n, a, lda ) ) {
51  return -5;
52  }
53  if( LAPACKE_zge_nancheck( matrix_layout, 4*n, 1, tb, ltb ) ) {
54  return -7;
55  }
56  if( LAPACKE_zge_nancheck( matrix_layout, n, nrhs, b, ldb ) ) {
57  return -11;
58  }
59  }
60 #endif
61  /* Call middle-level interface */
62  info = LAPACKE_zhetrs_aa_2stage_work( matrix_layout, uplo, n, nrhs,
63  a, lda, tb, ltb, ipiv, ipiv2, b,
64  ldb);
65  return info;
66 }
lapack_logical LAPACKE_zhe_nancheck(int matrix_layout, char uplo, lapack_int n, const lapack_complex_double *a, lapack_int lda)
#define LAPACK_ROW_MAJOR
Definition: lapacke.h:119
lapack_int LAPACKE_zhetrs_aa_2stage_work(int matrix_layout, char uplo, lapack_int n, lapack_int nrhs, lapack_complex_double *a, lapack_int lda, lapack_complex_double *tb, lapack_int ltb, lapack_int *ipiv, lapack_int *ipiv2, lapack_complex_double *b, lapack_int ldb)
#define LAPACK_COL_MAJOR
Definition: lapacke.h:120
void LAPACKE_xerbla(const char *name, lapack_int info)
#define lapack_int
Definition: lapacke.h:47
lapack_logical LAPACKE_zge_nancheck(int matrix_layout, lapack_int m, lapack_int n, const lapack_complex_double *a, lapack_int lda)
int LAPACKE_get_nancheck()
Here is the call graph for this function: