Question: Getting elements in a for loop into a list

hi. I am trying to make a list of 2 by 2 matrices with entries from Zp. (for the moment p=3) I managed to make the matrices, but I can't for the life of me get them over in a list. This is the code I have written, and I would love some help, or an alternative solution. E := Matrix([[k, i], [j, l]]); for k from 0 to p-1 do for i from 0 to p-1 do for j from 0 to p-1 do for l from 0 to p-1 do E; print(E); end do ; end do ; end do ; end do;
Please Wait...