def eig_overlap(fs): normalized_fs = [cnormalize(f) for f in fs] s = build_matrix(normalized_fs) return sorted(map(abs, la.eig(s)[0]))
def clength(f, g): return abs(cnorm(cnormalize(f) - cnormalize(g)))