[GAP Forum] how to iterate over all matrices over a finite field?
Benoit Jacob
benoitjacob at google.com
Mon Dec 14 13:34:41 GMT 2015
Hello,
What would be a simple way to write a "for" loop iterating over all square
matrices of a fixed size, say NxN, over some fixed finite field GF(q) ? So
there would be q^(N^2) iterations? - of course, one could write a for loop
over integers from 1 to q^(N^2) and for each integer construct a
corresponding matrix, but is there a simpler way?
Thanks,
Benoit
More information about the Forum
mailing list