LAPACK  3.5.0
LAPACK: Linear Algebra PACKage
 All Classes Files Functions Variables Typedefs Macros
lapacke_dhs_nancheck.c File Reference
#include "lapacke_utils.h"
Include dependency graph for lapacke_dhs_nancheck.c:

Go to the source code of this file.

Functions/Subroutines

lapack_logical LAPACKE_dhs_nancheck (int matrix_order, lapack_int n, const double *a, lapack_int lda)

Function/Subroutine Documentation

lapack_logical LAPACKE_dhs_nancheck ( int  matrix_order,
lapack_int  n,
const double *  a,
lapack_int  lda 
)

Definition at line 37 of file lapacke_dhs_nancheck.c.

{
lapack_logical subdiag_nans;
if( a == NULL ) return (lapack_logical) 0;
/* Check subdiagonal first */
if( matrix_order == LAPACK_COL_MAJOR ) {
subdiag_nans = LAPACKE_d_nancheck( n-1, &a[1], lda+1 );
} else if ( matrix_order == LAPACK_ROW_MAJOR ) {
subdiag_nans = LAPACKE_d_nancheck( n-1, &a[lda], lda+1 );
} else {
return (lapack_logical) 0;
}
/* Check upper triangular if subdiagonal has no NaNs. */
return subdiag_nans || LAPACKE_dtr_nancheck( matrix_order, 'u', 'n',
n, a, lda);
}

Here is the call graph for this function: