The GAP-command DirectSumMat allows to take the direct sum of matrices over (only certain?) fields. Now I did the following in GAP:
F:=FunctionField(Rationals,["x1","x2","x3","x4"]);AssignGeneratorVariables(F);
N:=[[x1,x2],[x3,x4]];U:=DirectSumMat(N,N);
This gives an error so it seems that the command DirectSumMat does not work over the field F:=FunctionField(Rationals,["x1","x2","x3","x4"]); or am I using the command wrong? The command DirectSumMat seems to work fine over the rationals.
Question: Is there an easy fix for this so that one can take the direct sum of matrices over any fields in GAP?
DirectSumMatthat changed but the mechanism for determining a base field from the matrix entries. – ahulpke Apr 05 '23 at 12:01DirectSumMatdid change quite a lot. of course the core which does the actual work did not – Max Horn Apr 05 '23 at 13:54