LAPACK  3.6.1
LAPACK: Linear Algebra PACKage
lapack_logical LAPACKE_shs_nancheck ( int  matrix_layout,
lapack_int  n,
const float *  a,
lapack_int  lda 
)

Definition at line 37 of file lapacke_shs_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_s_nancheck( n-1, &a[1], lda+1 );
48  } else if ( matrix_layout == LAPACK_ROW_MAJOR ) {
49  subdiag_nans = LAPACKE_s_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_str_nancheck( matrix_layout, 'u', 'n',
56  n, a, lda);
57 }
#define lapack_logical
Definition: lapacke.h:51
#define LAPACK_ROW_MAJOR
Definition: lapacke.h:119
lapack_logical LAPACKE_s_nancheck(lapack_int n, const float *x, lapack_int incx)
lapack_logical LAPACKE_str_nancheck(int matrix_layout, char uplo, char diag, lapack_int n, const float *a, lapack_int lda)
#define LAPACK_COL_MAJOR
Definition: lapacke.h:120

Here is the call graph for this function: