Converts a sparse SciPy matrix into a sparse CVXOPT matrix.

def tocvx(B):
    """ Converts a sparse SciPy matrix into a sparse CVXOPT matrix.
    """
    Bcoo = B.tocoo()
    return spmatrix(Bcoo.data, Bcoo.row.tolist(), Bcoo.col.tolist())