Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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]