LAPACK  3.5.0
LAPACK: Linear Algebra PACKage
lapacke_shs_nancheck.c File Reference
#include "lapacke_utils.h"
Include dependency graph for lapacke_shs_nancheck.c:

Go to the source code of this file.

Functions

lapack_logical LAPACKE_shs_nancheck (int matrix_order, lapack_int n, const float *a, lapack_int lda)
 

Function Documentation

lapack_logical LAPACKE_shs_nancheck ( int  matrix_order,
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_order == LAPACK_COL_MAJOR ) {
47  subdiag_nans = LAPACKE_s_nancheck( n-1, &a[1], lda+1 );
48  } else if ( matrix_order == 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_order, 'u', 'n',
56  n, a, lda);
57 }
lapack_logical LAPACKE_str_nancheck(int matrix_order, char uplo, char diag, lapack_int n, const float *a, lapack_int lda)
#define lapack_logical
Definition: lapacke.h:51
#define LAPACK_COL_MAJOR
Definition: lapacke.h:120
lapack_logical LAPACKE_s_nancheck(lapack_int n, const float *x, lapack_int incx)
#define LAPACK_ROW_MAJOR
Definition: lapacke.h:119

Here is the call graph for this function: