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

Go to the source code of this file.

Functions

lapack_logical LAPACKE_s_nancheck (lapack_int n, const float *x, lapack_int incx)
 

Function Documentation

lapack_logical LAPACKE_s_nancheck ( lapack_int  n,
const float *  x,
lapack_int  incx 
)

Definition at line 37 of file lapacke_s_nancheck.c.

40 {
41  lapack_int i, inc;
42 
43  if( incx == 0 ) return (lapack_logical) LAPACK_SISNAN( x[0] );
44  inc = ( incx > 0 ) ? incx : -incx ;
45 
46  for( i = 0; i < n*inc; i+=inc ) {
47  if( LAPACK_SISNAN( x[i] ) )
48  return (lapack_logical) 1;
49  }
50  return (lapack_logical) 0;
51 }
#define lapack_logical
Definition: lapacke.h:51
error code as a return value instead of the INFO parameter This implementation supports both the ILP64 and LP64 programming and different complex type C99 This implementation includes interfaces for the LAPACK Driver and Computational routines only Product Directories The installation directory of this package has the following compiler names for binaries to be created linked to You may choose the appropriate LP64 ILP64 convenient complex type LAPACKE name and or redefine system malloc free in make inc Several examples of make inc are provided After setting up the make inc
Definition: README:24
ELF f x
Definition: testslamch:1
#define LAPACK_SISNAN(x)
#define lapack_int
Definition: lapacke.h:47