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

Go to the source code of this file.

Functions/Subroutines

lapack_logical LAPACKE_c_nancheck (lapack_int n, const lapack_complex_float *x, lapack_int incx)

Function/Subroutine Documentation

lapack_logical LAPACKE_c_nancheck ( lapack_int  n,
const lapack_complex_float x,
lapack_int  incx 
)

Definition at line 37 of file lapacke_c_nancheck.c.

{
if( incx == 0 ) return (lapack_logical) LAPACK_CISNAN( x[0] );
inc = ( incx > 0 ) ? incx : -incx ;
for( i = 0; i < n*inc; i+=inc ) {
if( LAPACK_CISNAN( x[i] ) )
return (lapack_logical) 1;
}
return (lapack_logical) 0;
}

Here is the caller graph for this function: