-
Notifications
You must be signed in to change notification settings - Fork 133
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
Clarify doc of init
in map_word
#4498
Clarify doc of init
in map_word
#4498
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #4498 +/- ##
==========================================
- Coverage 84.55% 84.55% -0.01%
==========================================
Files 672 672
Lines 88888 88833 -55
==========================================
- Hits 75158 75109 -49
+ Misses 13730 13724 -6
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good. Thanks.
src/Groups/GAPGroups.jl
Outdated
|
||
If `init` is different from `nothing`, return $x g_{i_1}^{e_1} g_{i_2}^{e_2} \cdots g_{i_n}^{e_n}$ where $x =$ `init`. | ||
|
||
See also: [`map_word(::Union{FPGroupElem, SubFPGroupElem}, ::Vector)`](@ref), [`map_word(::Vector{Union{Int, Pair{Int, Int}}}, ::Vector)`](@ref). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The two references point to the same section. Wouldn't one reference be enough?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right. I removed the second one.
The behaviour of
init
has been settled in #3892, but there were some problems with the documentation:init
was not documented at all forPcGroups
.map_word([], genimgs, init=init)
isone(genimgs[1])
ifgenimgs
is non-empty. This is incorrect, it isinit
.init
is the left-most factor if it is specified to the beginning. I found the way it was done previously confusing.I also added examples illustrating the behaviour for integer lists and for
map_word([], [])
.