Skip to content

Conversation

@chseeger
Copy link
Contributor

  • Add field argument to both ConjugateToSesquilinearForm and ConjugateToStandardForm.
  • Replace additional instances of DefaultFieldOfMatrixGroup.
  • Adjust tests: where necessary, check only the characteristic of the underlying field (instead of requiring equality with the field returned by DefaultFieldOfMatrixGroup).
  • Clarify documentation related to DefaultFieldOfMatrixGroup.

Resolves #132.

Comment on lines +132 to 134
if IsSquareInt(Size(field)) then
q := RootInt(Size(field));
else
Copy link
Member

@fingolfin fingolfin Dec 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This workaround should not be necessary anymore with your changes, right?

Suggested change
if IsSquareInt(Size(field)) then
q := RootInt(Size(field));
else
Assert(0, IsSquareInt(Size(field))); # paranoia check
q := RootInt(Size(field));

or even better

Suggested change
if IsSquareInt(Size(field)) then
q := RootInt(Size(field));
else
Assert(0, IsSquareInt(Size(field))); # paranoia check
q := Characteristic(field) ^ (DegreeOverPrimeField(field)/2)

Comment on lines +135 to 136
q := Size(field);
fi;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
q := Size(field);
fi;

if not IsFinite(F) then
ErrorNoReturn("The base field of <G> must be finite");
fi;
if not IsEvenInt(DegreeOverPrimeField(F)) then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto: can probably be replace by an assertion?

@fingolfin fingolfin merged commit 8451477 into gap-packages:main Dec 17, 2025
0 of 4 checks passed
@chseeger chseeger deleted the cs/avoid-DefaultFieldOfMatrixGroup branch December 19, 2025 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Change ConjugateToSesquilinearForm to take field as a required argument

2 participants