Developer Reference for Intel® oneAPI Math Kernel Library for C

ID 766684
Date 7/13/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

LAPACKE_get_nancheck

Gets the current NaN checking flag, which indicates whether NaN checking has been turned off or on.

int flag = LAPACKE_get_nancheck ();

Description

The function returns the current value for the LAPACKE NaN checking flag, which indicates whether or not LAPACKE routines check input matrices for NaNs.

Return Value

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.