Given an odd prime, p, and integers n and m, I would like to quickly list all invertible m x m matrices whose entries come from the finite field of size p^n. What is an efficient way to do this?
I could list all possible (p^n)^(m x m) matrices and filter for those with non-zero determinant, but this seems wasteful since it involves calculating many determinants.
By listing all lower-diagonal (L), diagonal (D), and upper diagonal matrices (U), I can list matrices with factorization LDU, but these will never have zeros on the diagonal.
Is there a simple and efficient way to list all invertible square matrices whose entries come from a finite field?
Thank you!