def multi_intersect(input):
    arr  = input[0].ravel()
    for this in input[1:]:
        arr = np.intersect1d(arr, this.ravel())

    return arr
A function for finding the intersection of several different arrays
dataset/ETHPy150Open nipy/nitime/nitime/utils.py/multi_intersect