Intel® oneAPI Math Kernel Library Developer Reference - C
Turns NaN checking off or on
LAPACKE_set_nancheck(int flag);
The routine sets a value for the LAPACKE NaN checking flag, which indicates whether or not LAPACKE routines check input matrices for NaNs.
If flag= 0, NaN checking is turned OFF. Otherwise, it is turned ON.