temp = tuple(np.extract(cond, arr) for arr in arrays)