Does anyone know whether is a function in GAP via I would be able to change elements of matrices over GF(2) to the form 0 and 1. need to say, in GAP, outputs for elements of matrices defined over GF(2) are in these form: Z(2)^0 and 0*Z(2). Is it possible to change these elements in the last step to 1 and 0 respectively?
2026-03-28 14:20:25.1774707625
Matrices' outputs in GAP
713 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
It depends whether do you need this to view the result or to use it in subsequent code.
For viewing, see " Vectors and Matrices" from the GAP tutorial:
"A vector or matrix of integers can also be multiplied with a finite field scalar and vice versa. Such products result in a matrix over the finite field with the integers mapped into the finite field in the obvious way. Finite field matrices are nicer to read when they are
Displayed rather thanPrinted. (Here we writeZ(q)to denote a primitive root of the finite field with $q$ elements.)"For example,
Otherwise, if
elmis an element of a finite prime field, thenInt(elm)returns the smallest nonnegative integer such thatelm = int * One( elm ):and
IntVecFFEmay be used to perform the conversion on rows. See?IntFFEin GAP for more details aboutInfFFEandIntVecFFE.