LAPACK  3.8.0
LAPACK: Linear Algebra PACKage

◆ LAPACKE_z_nancheck()

lapack_logical LAPACKE_z_nancheck ( lapack_int  n,
const lapack_complex_double x,
lapack_int  incx 
)

Definition at line 37 of file lapacke_z_nancheck.c.

40 {
41  lapack_int i, inc;
42 
43  if( incx == 0 ) return (lapack_logical) LAPACK_ZISNAN( x[0] );
44  inc = ( incx > 0 ) ? incx : -incx ;
45 
46  for( i = 0; i < n*inc; i+=inc ) {
47  if( LAPACK_ZISNAN( x[i] ) )
48  return (lapack_logical) 1;
49  }
50  return (lapack_logical) 0;
51 }
#define lapack_logical
Definition: lapacke.h:51
#define LAPACK_ZISNAN(x)
#define lapack_int
Definition: lapacke.h:47