(desc, type)
Sets the matrix type of the specified matrix.

    Parameters
    ----------
    desc : cusparseMatDescr
        Matrix descriptor.
    type : int
        Matrix type.
Sets the matrix type of the specified matrix.
Sets the matrix type of the specified matrix .
def cusparseSetMatType(desc, type):
    """
    Sets the matrix type of the specified matrix.

    Parameters
    ----------
    desc : cusparseMatDescr
        Matrix descriptor.
    type : int
        Matrix type.

    """

    status = _libcusparse.cusparseSetMatType(desc, type)
    cusparseCheckStatus(status)
def cusparseSetMatType ( desc , type ) : status = _libcusparse . cusparseSetMatType ( desc , type ) cusparseCheckStatus ( status )