# Exact cover test (bistochastic Butson form over some mu_{2^a}) for real Hadamard matrices of order 16, Aalto format. import sys, numpy as np, itertools f=sys.argv[1]; L=[l.strip() for l in open(f) if l.strip()] def covers(sets,items): FULL=(1<>i&1] for i in range(items)] def rec(cov): if cov==FULL: return True best=None for i in range(items): if not cov>>i&1: c=[s for s in by[i] if s&cov==0] if best is None or len(c)