I want to create in MAGMA the subspace of the general linear group $\operatorname{GL}_n (\mathbb{F}_5)$ consisting of matrices with only entry $\in \{ 1, -1 \}$ in each row and column and all other entries are zero. That is, I want to create the signed symmetric group of matrices over $\mathbb{F}_5$.
If $n = 2$, then the signed symmetric group has $2^n \cdot n! = 8$ elements. This is kinda doable since the group has only $8$ elements and can be listed explicitly.
However, for large values of $n$, say $n=5$, this would be tiresome.
How do I create the signed symmetric group of matrices in MAGMA?
Thank you in advance for any help. Below is my sample code.
>F5 := FiniteField(5); > >GL25 := GeneralLinearGroup(2, F5); > >A1 := Matrix(F5,2,2,[1,0,0,1]); >A2 := Matrix(F5,2,2,[4,0,0,4]); >A3 := Matrix(F5,2,2,[1,0,0,4]); >A4 := Matrix(F5,2,2,[4,0,0,1]); >A5 := Matrix(F5,2,2,[0,1,1,0]); >A6 := Matrix(F5,2,2,[0,4,4,0]); >A7 := Matrix(F5,2,2,[0,1,4,0]); >A8 := Matrix(F5,2,2,[0,4,1,0]); > >SignSymGrp := sub<GL25|A1,A2,A3,A4,A5,A6,A7,A8>; >SignSymGrp;