Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collection of miscellaneous small changes ("cleanup") #4341

Merged
merged 6 commits into from
Mar 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/issue_template.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Please use the following template to submit an issue
(you may delete lines which are not used). Thank You!
(you may delete lines which are not used). Thank you!

### Observed behaviour

Expand Down
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Please use the following template to submit a pull request, filling
in at least the "Text for release notes" and/or "Further details".
Thank You!
Thank you!

# Description

Expand Down
2 changes: 1 addition & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ The GAP 4.11.1 distribution contains 151 packages, of which 49 have been updated
- [#3103](https://github.com/gap-system/gap/pull/3103) This fixes [#3097](https://github.com/gap-system/gap/issues/3097), a problem with `Order` of automorphism
and [#3100](https://github.com/gap-system/gap/issues/3100), a problem with `GroupHomomorphismByImages`
- [#3392](https://github.com/gap-system/gap/pull/3392) Prevent blist functions that modify an argument in-place (such as `UniteBlist`) from modifying immutable blists
- [#3522](https://github.com/gap-system/gap/pull/3522) `IsSimpleGroup` does not implies `IsAlmostSimpleGroup` anymore
- [#3522](https://github.com/gap-system/gap/pull/3522) `IsSimpleGroup` does not imply `IsAlmostSimpleGroup` anymore
- [#3575](https://github.com/gap-system/gap/pull/3575) Fix bug in calculating x/p for an integer x and permutation p, if p has been 'trimmed'.
- [#3603](https://github.com/gap-system/gap/pull/3603) Fix bug where the result of `StandardAssociateUnit` could be not a unit.
- [#3611](https://github.com/gap-system/gap/pull/3611) Fix `StandardAssociateUnit` for polynomial rings to return a polynomial, not an element of the coefficient ring
Expand Down
2 changes: 1 addition & 1 deletion dev/MODULE-PROPOSAL
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ A module is a part of GAP that
- consists of a discrete set of files
[unless there is a very good reason]
- has a well-defined set of authors/maintainers.
- get credited separately (see below)
- gets credited separately (see below)
Typical examples would be:
- Rational functions
- Lie Algebras
Expand Down
24 changes: 12 additions & 12 deletions dev/MODULES
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ Authors: Bettina Eick
Maintainers: Werner Nickel
Description: This module contains an algorithm to determine the automorphism
group of a finite pc group. The implementation follows the ideas
of Micheal Smith.
of Michael Smith.

Name: Twocohomology and extensions of finite pc groups
Proposer: Bettina Eick
Expand Down Expand Up @@ -322,7 +322,7 @@ Authors: Andrew Solomon, Robert F. Morse
Maintainer: Robert F. Morse
Description: This library code computes congruences for a set with one
binary operator. Faster methods are used when
associativity is known.
associativity is known.

Name: Semigroup relations
Proposer: Robert F. Morse 21-May-01
Expand Down Expand Up @@ -376,16 +376,16 @@ Authors: Burkhard Hšfling
Description: This set of files provides the implementation of system dependent
GAP functions and a user interface to run GAP under MacOS

Name: Identification of Galois groups
Proposer: Alexander Hulpke
Seconder: Frank Lübeck (May 4, 2003), Joachim Neub"user (May 5, 2003)
Files: galois.g*
Author&Maintainer: Alexander Hulpke
Description: functionality for determining the permutation isomorphism type of a Galois group.
Name: Identification of Galois groups
Proposer: Alexander Hulpke
Seconder: Frank Lübeck (May 4, 2003), Joachim Neubüser (May 5, 2003)
Files: galois.g*
Author&Maintainer: Alexander Hulpke
Description: functionality for determining the permutation isomorphism type of a Galois group.

Name: Characters and Character Degrees of certain solvable groups
Proposer: Thomas Breuer
Seconder: Frank Lübeck (July 15, 2003), Joachim Neub"user (July 15, 2003)
Seconder: Frank Lübeck (July 15, 2003), Joachim Neubüser (July 15, 2003)
Files: lib/ctblsolv.gd, lib/ctblsolv.gi
Authors: Hans Ulrich Besche, Thomas Breuer
Maintainer: Thomas Breuer
Expand All @@ -397,7 +397,7 @@ Description: Computation of irreducible character degrees of solvable groups,

Name: Possible Permutation Characters
Proposer: Thomas Breuer
Seconder: Frank Lübeck (July 31, 2003), Joachim Neub"user (June 17, 2003)
Seconder: Frank Lübeck (July 31, 2003), Joachim Neubüser (June 17, 2003)
Files: lib/ctblpope.gd, lib/ctblpope.gi,
sections ``Possible Permutation Characters'' and
``Computing Possible Permutation Characters'' in
Expand All @@ -410,7 +410,7 @@ Description: Computation of characters that have certain properties of

Name: Monomiality Questions
Proposer: Thomas Breuer
Seconder: Frank Lübeck (July 31, 2003), Joachim Neub"user (June 17, 2003)
Seconder: Frank Lübeck (July 31, 2003), Joachim Neubüser (June 17, 2003)
Files: lib/ctblmono.gd, lib/ctblmono.gi, doc/build/ctblmono.msk,
tst/ctblmono.tst
Authors: Thomas Breuer, Erzsébet Horváth
Expand All @@ -419,7 +419,7 @@ Description: Monomiality of finite (solvable) groups and their characters

Name: Possible Class Fusions, Possible Power Maps
Proposer: Thomas Breuer
Seconder: Frank Lübeck (July 31, 2003), Joachim Neub"user (June 17, 2003)
Seconder: Frank Lübeck (July 31, 2003), Joachim Neubüser (June 17, 2003)
Files: lib/ctblmaps.gd, lib/ctblmaps.gi, doc/build/ctblmaps.msk
Authors: Thomas Breuer
Maintainer: Thomas Breuer
Expand Down
4 changes: 2 additions & 2 deletions dev/listarith.tex
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ \subsection{In vector.c and vecffe.c}

\section{XTNum extended despatch}

XTNum is defined in lists.c. It's behaviour is controlled by entries
XTNum is defined in lists.c. Its behaviour is controlled by entries
in the IsXTNumListFuncs jump table. These are boolean (C style)
unctions, possibly defined for types from \verb|FIRST_REAL_TNUM| up to
\verb|LAST_REAL_TNUM|. Each one is tried in reverse TNUM order, with
Expand Down Expand Up @@ -258,7 +258,7 @@ \section{Determining the Type of Plists}

What is relevant for our purposes, is that this code, taking advantage
of the information already stored about the list, walks the structure
of it, as far as necessary to determine it's ``transient'' TNUM (ie
of it, as far as necessary to determine its ``transient'' TNUM (ie
the TNUM that it really deserves, but which might not be storable
thanks to the presence of mutable subobjects) storing as much
information along the way as it can. After that, the type is just
Expand Down
2 changes: 1 addition & 1 deletion dev/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ also put in a file `dev/modules.txt'
Modularization of GAP
======================

There are three levels of ``separateness'', that are roughly conatined in
There are three levels of ``separateness'', that are roughly contained in
each other:
The first is a purely software engineering level of ``Modules''. A module is
a piece of code which provides certain functionality via a defined set of
Expand Down
2 changes: 1 addition & 1 deletion hpcgap/lib/filter.gi
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
## position of this filter in the global FILTERS list.
## <P/>
## Note that not every <C>filter</C> for which <C>IsFilter(filter)</C>
## returns <C>true</C> has an ID, only elementary filters do.
## returns <K>true</K> has an ID, only elementary filters do.
## </Description>
## </ManSection>
## <#/GAPDoc>
Expand Down
8 changes: 4 additions & 4 deletions lib/bitfields.gd
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@
## corresponding to the width 1 fields.
## <List> <Mark><C>booleanGetters</C></Mark> <Item>if the <M>i</M>th position of
## this list is set, it contains a function which extracts the <M>i</M>th
## field (which will have width one) and returns <C>true</C> if it contains 1
## and <C>false</C> if it contains 0</Item>
## field (which will have width one) and returns <K>true</K> if it contains 1
## and <K>false</K> if it contains 0</Item>
## <Mark><C>booleanSetters</C></Mark> <Item>if the <M>i</M>th position of
## this list is set, it contains a function of two arguments. The first
## argument is a packed value, the second is <C>true</C> or <C>false</C>. It returns a
## argument is a packed value, the second is <K>true</K> or <K>false</K>. It returns a
## new packed value in which the <M>i</M>th field is set to 1 if the second
## argument was <C>true</C> and 0 if it was <C>false</C>. Behaviour for any
## argument was <K>true</K> and 0 if it was <K>false</K>. Behaviour for any
## other value is undefined.</Item></List>
## </Description>
## </ManSection>
Expand Down
2 changes: 1 addition & 1 deletion lib/filter.gi
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
## position of this filter in the global FILTERS list.
## <P/>
## Note that not every <C>filter</C> for which <C>IsFilter(filter)</C>
## returns <C>true</C> has an ID, only elementary filters do.
## returns <K>true</K> has an ID, only elementary filters do.
## </Description>
## </ManSection>
## <#/GAPDoc>
Expand Down
20 changes: 4 additions & 16 deletions lib/gpprmsya.gi
Original file line number Diff line number Diff line change
Expand Up @@ -673,14 +673,8 @@ InstallMethod(IsNaturalAlternatingGroup,"knows size",true,[IsPermGroup
end );

InstallMethod(IsNaturalAlternatingGroup,"comprehensive",true,[IsPermGroup],0,
function( grp )
if 0 = NrMovedPoints(grp) then
return IsTrivial(grp);
else
return PermgpContainsAn(grp)=true and
ForAll(GeneratorsOfGroup(grp),i->SignPerm(i)=1);
fi;
end );
G -> IsTrivial(G) or
ForAll(GeneratorsOfGroup(G),i->SignPerm(i)=1) and PermgpContainsAn(G)=true);
Copy link
Member

Choose a reason for hiding this comment

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

Perhaps also like this?

Suggested change
ForAll(GeneratorsOfGroup(G),i->SignPerm(i)=1) and PermgpContainsAn(G)=true);
ForAll(GeneratorsOfGroup(G),i->SignPerm(i)=1) and PermgpContainsAn(G));

Copy link
Member Author

Choose a reason for hiding this comment

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

PermgpContainsAn can return either true or false or the return value of PermNatAnTestDetect which can be a set of points, so I can't make that change (as much as I'd like to).


#############################################################################
##
Expand All @@ -705,14 +699,8 @@ InstallMethod(IsNaturalSymmetricGroup,"knows size",true,[IsPermGroup
end );

InstallMethod(IsNaturalSymmetricGroup,"comprehensive",true,[IsPermGroup],0,
function( grp )
if 0 = NrMovedPoints(grp) then
return IsTrivial(grp);
else
return PermgpContainsAn(grp)=true and
ForAny(GeneratorsOfGroup(grp),i->SignPerm(i)=-1);
fi;
end );
G -> IsTrivial(G) or
ForAny(GeneratorsOfGroup(G),i->SignPerm(i)=-1) and PermgpContainsAn(G)=true);

#############################################################################
##
Expand Down
2 changes: 1 addition & 1 deletion lib/grppcaut.gi
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ end;
# construct subgroup of GL that stabilizes the spaces given and fixes the
# listed spaceorbits.

# auxillary
# auxiliary
RedmatSpanningIndices:=function(gens)
local bas,n,one,new,a,b,g;
n:=Length(gens[1]);
Expand Down
6 changes: 3 additions & 3 deletions lib/matrix.gi
Original file line number Diff line number Diff line change
Expand Up @@ -1551,7 +1551,7 @@ InstallMethod( DeterminantMatDestructive,"nonprime residue rings",
## Mahajan and Vinay \cite{MV97}.
##
## The run time is $O(n^4)$
## Auxillary storage size $n^2+n + C$
## Auxiliary storage size $n^2+n + C$
##
## Our implementation has two runtime optimizations (both noted
## by Mahajan and Vinay)
Expand All @@ -1560,9 +1560,9 @@ InstallMethod( DeterminantMatDestructive,"nonprime residue rings",
## 2. Prefix property is maintained allowing for a pruning of many
## vertices at each level
##
## and two auxillary storage size optimizations
## and two auxiliary storage size optimizations
## 1. only the upper triangular and diagonal portion of the
## auxillary storage is used.
## auxiliary storage is used.
## 2. Level information storage is reused (2 levels).
##
## This code was implemented by:
Expand Down
2 changes: 1 addition & 1 deletion lib/morpheus.gd
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ DeclareGlobalFunction("MorMaxFusClasses");
## <Mark><C>condition</C></Mark>
## <Item>
## A function that will be applied to the homomorphism and must return
## <C>true</C> for the homomorphism to be accepted.
## <K>true</K> for the homomorphism to be accepted.
## </Item>
## </List>
## <P/>
Expand Down
4 changes: 2 additions & 2 deletions lib/oper.g
Original file line number Diff line number Diff line change
Expand Up @@ -1244,9 +1244,9 @@ end );
## this incremental rank (see&nbsp;<Ref Sect="Filters"/>),
## </Item>
## <Item> If the argument <A>mutable</A> is the string <C>"mutable"</C> or
## the boolean <C>true</C>, then the values of the attribute are mutable.
## the boolean <K>true</K>, then the values of the attribute are mutable.
## </Item>
## <Item> If the argument <A>mutable</A> is the boolean <C>false</C>, then
## <Item> If the argument <A>mutable</A> is the boolean <K>false</K>, then
## the values of the attribute are immutable.
## </Item>
## </List>
Expand Down
2 changes: 1 addition & 1 deletion lib/sgpres.gi
Original file line number Diff line number Diff line change
Expand Up @@ -3579,7 +3579,7 @@ local DATA,rels,i,j,w,f,r,s,fam,new,ri,a,offset,p,rset,re,start,stack,pres,
if warn and Length(s)>100*Sum(rels,Length) then
warn:=false;
Error(
"Trying to eliminate all auxillary generators might cause the\n",
"Trying to eliminate all auxiliary generators might cause the\n",
"size of the presentation to explode. Proceed at risk!");
fi;
od;
Expand Down
2 changes: 1 addition & 1 deletion lib/system.g
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ end);
##
## <Description>
## tests whether &GAP; is running on Mac OS X. Note that on Mac OS X, also
## <Ref Func="ARCH_IS_UNIX"/> will be <C>true</C>.
## <Ref Func="ARCH_IS_UNIX"/> will be <K>true</K>.
## </Description>
## </ManSection>
## <#/GAPDoc>
Expand Down
4 changes: 2 additions & 2 deletions lib/teaching.g
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,8 @@ DeclareGlobalFunction("CheckDigitTestFunction");
## <Description>
## These functions can be used to compute, or check, check digits for some
## everyday items. In each case what is submitted as input is either the number
## with check digit (in which case the function returns <C>true</C> or
## <C>false</C>), or the number without check digit (in which case the function
## with check digit (in which case the function returns <K>true</K> or
## <K>false</K>), or the number without check digit (in which case the function
## returns the missing check digit). The number can be specified as integer, as
## string (for example in case of leading zeros) or as a sequence of arguments,
## each representing a single digit.
Expand Down
4 changes: 2 additions & 2 deletions lib/test.gi
Original file line number Diff line number Diff line change
Expand Up @@ -346,10 +346,10 @@ end);
## <Item>A <C>#@if</C> allows to conditionally skip parts of the test input depending on
## the value of a boolean expression. The exact behavior is done as follows:
## <P/>
## If the &GAP; expression <C>EXPR</C> evaluates to <C>true</C>, then the lines after the
## If the &GAP; expression <C>EXPR</C> evaluates to <K>true</K>, then the lines after the
## <C>#@if</C> are used until either a <C>#@else</C> or <C>#@fi</C> is
## reached. If a <C>#@else</C> is present then the code after the <C>#@else</C>
## is used if and only if <C>EXPR</C> evaluated to <C>false</C>. Finally,
## is used if and only if <C>EXPR</C> evaluated to <K>false</K>. Finally,
## once <C>#endif</C> is reached, evaluation continues normally.
## </Item>
## </List>
Expand Down
16 changes: 8 additions & 8 deletions lib/type.gd
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ DeclareGlobalFunction( "TypeOfOperation" );
## <Func Name="IsCategory" Arg='object'/>
##
## <Description>
## returns <C>true</C> if <A>object</A> is a category
## (see&nbsp;<Ref Sect="Categories"/>), and <C>false</C> otherwise.
## returns <K>true</K> if <A>object</A> is a category
## (see&nbsp;<Ref Sect="Categories"/>), and <K>false</K> otherwise.
## <P/>
## Note that &GAP; categories are <E>not</E> categories in the usual mathematical
## sense.
Expand All @@ -97,8 +97,8 @@ DeclareGlobalFunction( "IsCategory" );
## <Func Name="IsRepresentation" Arg='object'/>
##
## <Description>
## returns <C>true</C> if <A>object</A> is a representation
## (see&nbsp;<Ref Sect="Representation"/>), and <C>false</C> otherwise.
## returns <K>true</K> if <A>object</A> is a representation
## (see&nbsp;<Ref Sect="Representation"/>), and <K>false</K> otherwise.
## </Description>
## </ManSection>
## <#/GAPDoc>
Expand All @@ -116,8 +116,8 @@ DeclareGlobalFunction( "IsRepresentation" );
## <Func Name="IsAttribute" Arg='object'/>
##
## <Description>
## returns <C>true</C> if <A>object</A> is an attribute
## (see&nbsp;<Ref Sect="Attributes"/>), and <C>false</C> otherwise.
## returns <K>true</K> if <A>object</A> is an attribute
## (see&nbsp;<Ref Sect="Attributes"/>), and <K>false</K> otherwise.
## </Description>
## </ManSection>
## <#/GAPDoc>
Expand All @@ -135,8 +135,8 @@ DeclareGlobalFunction( "IsAttribute" );
## <Func Name="IsProperty" Arg='object'/>
##
## <Description>
## returns <C>true</C> if <A>object</A> is a property
## (see&nbsp;<Ref Sect="Properties"/>), and <C>false</C> otherwise.
## returns <K>true</K> if <A>object</A> is a property
## (see&nbsp;<Ref Sect="Properties"/>), and <K>false</K> otherwise.
## </Description>
## </ManSection>
## <#/GAPDoc>
Expand Down
7 changes: 2 additions & 5 deletions lib/vspcmat.gi
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,8 @@ InstallMethod( Coefficients,
fi;

# Preset the coefficients list with zeroes.
zero := Zero( v[1][1] );
coeff := [];
for i in [ 1 .. Length( vectors ) ] do
coeff[i]:= zero;
od;
zero:= Zero( v[1][1] );
coeff:= ListWithIdenticalEntries( Length( vectors ), zero );

# Compute the coefficients of the basis vectors.
m:= Length( v );
Expand Down
3 changes: 1 addition & 2 deletions lib/vspcrow.gi
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,7 @@ InstallMethod( Coefficients,
fi;

# Preset the coefficients list with zeroes.
zero:= Zero( v[1] );
coeff:= List( vectors, x -> zero );
coeff:= ListWithIdenticalEntries( Length( vectors ), Zero( v[1] ) );

# Compute the coefficients of the base vectors.
v:= ShallowCopy( v );
Expand Down
6 changes: 3 additions & 3 deletions src/gap.c
Original file line number Diff line number Diff line change
Expand Up @@ -590,8 +590,8 @@ static Obj FuncWindowCmd(Obj self, Obj args)
{
tmp = ELM_LIST( args, i );
if (!IS_INTOBJ(tmp) && !IsStringConv(tmp)) {
ErrorMayQuit("WindowCmd: %d. argument must be a string or integer "
"(not a %s)",
ErrorMayQuit("WindowCmd: the argument in position %d must be a "
"string or integer (not a %s)",
i, (Int)TNAM_OBJ(tmp));
SET_ELM_PLIST(args, i, tmp);
}
Expand Down Expand Up @@ -1445,7 +1445,7 @@ StructInitInfo * InitInfoGap ( void )
** function is used for both starting and restoring.
**
** `InitLibrary': This function creates objects, gvar and rnam number, and
** does assignments of auxillary C variables (for example, pointers from
** does assignments of auxiliary C variables (for example, pointers from
** objects, length of hash lists). This function is only used for starting.
**
** `PostRestore': Everything in `InitLibrary' execpt creating objects. In
Expand Down
2 changes: 1 addition & 1 deletion tst/mockpkg/doc/about.tex
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

This is a mock package to be used to test {\GAP} library code
related to {\GAP} packages, for example to validate `PackageInfo.g`
files. Clearly, it's not available anywhere, and it has it's `ArchiveURL' set
files. Clearly, it's not available anywhere, and it has its `ArchiveURL' set
to `Concatenation( ~.PackageWWWHome, "/", ~.PackageName, "-", ~.Version )'
only for testing purposes.

Expand Down
Loading