1 | initial version |
I think you need a nested for loop. For example:
N = MatrixSpace(GF(2), 2)([0,1,1,0])
M = MatrixSpace(MatrixSpace(GF(2), 2), 1, 2)
M1 = M((N,N))
show(M1)
for m in M1.list():
for k in m.list():
print k
You can iterate over any sequence. If your respective object isn't a sequence, look if it has a list method.