LAPACK  3.8.0
LAPACK: Linear Algebra PACKage

◆ LAPACKE_get_nancheck()

int LAPACKE_get_nancheck ( )

Definition at line 43 of file lapacke_nancheck.c.

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