LAPACK  3.6.1
LAPACK: Linear Algebra PACKage
lapack_logical LAPACKE_chs_nancheck ( int  matrix_layout,
lapack_int  n,
const lapack_complex_float a,
lapack_int  lda 
)

Definition at line 37 of file lapacke_chs_nancheck.c.

40 {
41  lapack_logical subdiag_nans;
42 
43  if( a == NULL ) return (lapack_logical) 0;
44 
45  /* Check subdiagonal first */
46  if( matrix_layout == LAPACK_COL_MAJOR ) {
47  subdiag_nans = LAPACKE_c_nancheck( n-1, &a[1], lda+1 );
48  } else if ( matrix_layout == LAPACK_ROW_MAJOR ) {
49  subdiag_nans = LAPACKE_c_nancheck( n-1, &a[lda], lda+1 );
50  } else {
51  return (lapack_logical) 0;
52  }
53 
54  /* Check upper triangular if subdiagonal has no NaNs. */
55  return subdiag_nans || LAPACKE_ctr_nancheck( matrix_layout, 'u', 'n',
56  n, a, lda);
57 }
#define lapack_logical
Definition: lapacke.h:51
lapack_logical LAPACKE_ctr_nancheck(int matrix_layout, char uplo, char diag, lapack_int n, const lapack_complex_float *a, lapack_int lda)
#define LAPACK_ROW_MAJOR
Definition: lapacke.h:119
lapack_logical LAPACKE_c_nancheck(lapack_int n, const lapack_complex_float *x, lapack_int incx)
#define LAPACK_COL_MAJOR
Definition: lapacke.h:120

Here is the call graph for this function: