(status)
Raise CUSOLVER exception.

    Raise an exception corresponding to the specified CUSOLVER error
    code.

    Parameters
    ----------
    status : int
        CUSOLVER error code.

    See Also
    --------
    CUSOLVER_EXCEPTIONS
Raise CUSOLVER exception.
Raise CUSOLVER exception .
def cusolverCheckStatus(status):
    """
    Raise CUSOLVER exception.

    Raise an exception corresponding to the specified CUSOLVER error
    code.

    Parameters
    ----------
    status : int
        CUSOLVER error code.

    See Also
    --------
    CUSOLVER_EXCEPTIONS
    """

    if status != 0:
        try:
            e = CUSOLVER_EXCEPTIONS[status]
        except KeyError:
            raise CUSOLVER_ERROR
        else:
            raise e
def cusolverCheckStatus ( status ) : if status != 0 : try : e = CUSOLVER_EXCEPTIONS [ status ] except KeyError : raise CUSOLVER_ERROR else : raise e