-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
LowIndexNormalSubs
operation (#59)
- Loading branch information
1 parent
8617b89
commit cba84e8
Showing
12 changed files
with
246 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,4 +29,6 @@ | |
|
||
/gh-pages/ | ||
|
||
_dev | ||
_dev | ||
|
||
/tst/files/doc/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Introduction | ||
The files in this directory are used to post-process test files | ||
that are extracted from the documentation examples. | ||
|
||
# Main Files | ||
- `processTests.sh` : processes all doc tests and moves them into `tst/files/doc`. | ||
|
||
# Instructions | ||
In order to post-process the tests and move them into `tst/files/doc` automatically, one needs to execute `processTests.sh` from any place. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
# go to root of repo | ||
script_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
cd $script_dir/../.. | ||
echo "Working in folder $(pwd)" | ||
|
||
# Post-processing for the extracted examples from the documentation. | ||
# - Move files into test_dir | ||
test_dir="tst/files/doc" | ||
mkdir -p $test_dir | ||
files=($(ls -1 tst/lins*.tst)) | ||
echo "Found ${#files[@]} test file(s)" | ||
for file in ${files[@]}; do | ||
echo "Processing $file" | ||
mv $file $test_dir/${file#"tst/"} | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
############################################################################# | ||
# G = D_20 | ||
# index = 10 | ||
# fp-group | ||
############################################################################# | ||
|
||
gap> G := DihedralGroup(IsFpGroup, 20); | ||
<fp group of size 20 on the generators [ r, s ]> | ||
gap> L := LowIndexNormalSubs(G, 10); | ||
[ <fp group of size 20 on the generators [ r, s ]>, Group([ r ]), | ||
Group([ r^-2, s ]), Group([ r^-2, s*r^-1 ]), Group([ r^-2 ]), | ||
Group([ r^5 ]) ] | ||
gap> List(L, H -> Index(G, H)); | ||
[ 1, 2, 2, 2, 4, 10 ] |
Oops, something went wrong.