Open fingolfin opened 3 years ago
(@fingolfin I had just written a comment for #4376 when you opened this issue.)
I think in the situation of #4376, one knows that the matrix entries lie in GF(q), thus they should better be represented w.r.t. IsInternalRep
when q is small. (The construction happens in GF(q^2).)
In the general situation where the IsCoeffsModConwayPolRep
elements have to appear, I would prefer the variant where elements of the prime field are printed as multiples of z^0
.
Yeah, in the example I used above, ideally we'd use IsInternalRep
everywhere. But here I really wanted to discuss the printing for IsCoeffsModConwayPolRep
, and I was simply too lazy to figure out how to produce such elements independently ;-).
Inspired by issue #4376:
The entries of these matrices are all finite field elements, but in
IsCoeffsModConwayPolRep
(why that is so is another question, see issue #4376, but not relevant here).I think this way of printing those elements is very bad. In the first matrices, they look like gibberish, in the second they look like integers. Note that the second generator at this time is weird in the usual internal FFE rep, and printed quite differently:
We should either print the
IsCoeffsModConwayPolRep
elements like that; or if we deem this undesirable for some reason (e.g. it's too slow, or we want them to look different), then we could perhaps at least print them like this: