def conflicting_indices(X):
    """Finds where the indices are in the rest of feature matrix. This assures
    that the correct indices are dropped.

    Parameters
    ----------
    X : 2D array
        The embed indices. This is the same shape as the actual embedded time
        series.

    Returns
    -------
    conf_ind : 1d array
        Conflicting indices to be dropped.
    """

    conf_ind = []
    for i in range(len(X)):

        inds = [] #where to store

        #iterate through all other rows
        for j in range(len(X)):

            #check where they intersect
            if len(set( X[i] ).intersection( X[j] ))>0:
                inds.append(j)

        conf_ind.append(inds)

    return conf_ind