()
return handle.value
Initialize CUSPARSE.

    Initializes CUSPARSE and creates a handle to a structure holding
    the CUSPARSE library context.

    Returns
    -------
    handle : int
        CUSPARSE library context.
Initialize CUSPARSE.
Initialize CUSPARSE .
def cusparseCreate():
    """
    Initialize CUSPARSE.

    Initializes CUSPARSE and creates a handle to a structure holding
    the CUSPARSE library context.

    Returns
    -------
    handle : int
        CUSPARSE library context.

    """

    handle = ctypes.c_int()
    status = _libcusparse.cusparseCreate(ctypes.byref(handle))
    cusparseCheckStatus(status)
    return handle.value
def cusparseCreate ( ) : handle = ctypes . c_int ( ) status = _libcusparse . cusparseCreate ( ctypes . byref ( handle ) ) cusparseCheckStatus ( status ) return handle . value