def _get_sparse_matrixes(X):
    'Create csc, csr and coo sparse matrix from any of the above\n\n    Arguments:\n        X {array-like, csc, csr or coo sparse matrix}\n\n    Returns:\n        csc, csr, coo\n    '
    X_coo = X_csc = X_csr = None
    if scipy.sparse.isspmatrix_coo(X):
        X_coo = X
        X_csr = X_coo.tocsr(True)
        X_csc = X_coo.tocsc(True)
    elif scipy.sparse.isspmatrix_csr(X):
        X_csr = X
        X_csc = X_csr.tocoo(True)
        X_coo = X_csr.tocsc(True)
    elif scipy.sparse.isspmatrix_csc(X):
        X_csc = X
        X_csr = X_csc.tocsr(True)
        X_coo = X_csc.tocoo(True)
    else:
        assert False, 'only coo, csc and csr sparse matrixes are supported'
    return (X_csc, X_csr, X_coo)
Create csc, csr and coo sparse matrix from any of the above

Arguments:
    X {array-like, csc, csr or coo sparse matrix}

Returns:
    csc, csr, coo
def _get_sparse_matrixes(X):
    'Create csc, csr and coo sparse matrix from any of the above\n\n    Arguments:\n        X {array-like, csc, csr or coo sparse matrix}\n\n    Returns:\n        csc, csr, coo\n    '
    X_coo = X_csc = X_csr = None
    if scipy.sparse.isspmatrix_coo(X):
        X_coo = X
        X_csr = X_coo.tocsr(True)
        X_csc = X_coo.tocsc(True)
    elif scipy.sparse.isspmatrix_csr(X):
        X_csr = X
        X_csc = X_csr.tocoo(True)
        X_coo = X_csr.tocsc(True)
    elif scipy.sparse.isspmatrix_csc(X):
        X_csc = X
        X_csr = X_csc.tocsr(True)
        X_coo = X_csc.tocoo(True)
    else:
        assert False, 'only coo, csc and csr sparse matrixes are supported'
    return (X_csc, X_csr, X_coo)