LAPACK  3.10.0
LAPACK: Linear Algebra PACKage

◆ LAPACKE_get_nancheck()

int LAPACKE_get_nancheck ( void  )

Definition at line 42 of file lapacke_nancheck.c.

43 {
44  char* env;
45  if ( nancheck_flag != -1 ) {
46  return nancheck_flag;
47  }
48 
49  /* Check environment variable, once and only once */
50  env = getenv( "LAPACKE_NANCHECK" );
51  if ( !env ) {
52  /* By default, NaN checking is enabled */
53  nancheck_flag = 1;
54  } else {
55  nancheck_flag = atoi( env ) ? 1 : 0;
56  }
57 
58  return nancheck_flag;
59 }