answered 2 years ago
Try something like this
@parallel def worker(m): return condition(m) n = 3 M = MatrixSpace(Integers(n),n) L = [a[0] for (a,_),c in worker(iter(M)) if c]