Intel® oneAPI Math Kernel Library Developer Reference - C
Gets the current NaN checking flag, which indicates whether NaN checking has been turned off or on.
int flag = LAPACKE_get_nancheck ();
The function returns the current value for the LAPACKE NaN checking flag, which indicates whether or not LAPACKE routines check input matrices for NaNs.
An integer value is returned which indicates the current NaN checking status.
The returned flag value is either 0 (OFF) or 1 (ON), even though any integer value can be used as an input parameter for LAPACKE_set_nancheck.
For example, the following code turns on NaN checking:
LAPACKE_set_nancheck(100); int flag = LAPACKE_get_nancheck(); // flag==1, not 100.