Skip to content

Commit

Permalink
Change return argument order of is_prime_power_with_data (#2426)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens authored and thofma committed Jul 6, 2023
1 parent c080bf0 commit bd95ec2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Groups/GrpAb.jl
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ is_sporadic_simple(G::GrpAbFinGen) = false
function is_pgroup_with_prime(::Type{T}, G::GrpAbFinGen) where T <: IntegerUnion
is_trivial(G) && return true, nothing
is_finite(G) || return false, nothing
flag, p, e = is_prime_power_with_data(order(G))
flag, _, p = is_prime_power_with_data(order(G))
flag && return true, T(p)
return false, nothing
end
Expand All @@ -382,7 +382,7 @@ nilpotency_class(G::GrpAbFinGen) = (order(G) == 1 ? 0 : 1)
# prime_of_pgroup.
# TODO: enhance @gapattribute so this is not necessary
function _prime_of_pgroup(G::GrpAbFinGen)
flag, p, e = is_prime_power_with_data(order(G))
flag, _, p = is_prime_power_with_data(order(G))
@req flag "only supported for non-trivial p-groups"
return p
end
Expand Down
4 changes: 2 additions & 2 deletions src/Groups/matrices/MatGrp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,7 @@ julia> gens(H)
```
"""
function unitary_group(n::Int, q::Int)
fl, b, a = is_prime_power_with_data(q)
fl, a, b = is_prime_power_with_data(q)
@req fl "The field size must be a prime power"
G = MatrixGroup(n,GF(b, 2*a))
G.descr = :GU
Expand All @@ -890,7 +890,7 @@ julia> gens(H)
```
"""
function special_unitary_group(n::Int, q::Int)
fl, b, a = is_prime_power_with_data(q)
fl, a, b = is_prime_power_with_data(q)
@req fl "The field size must be a prime power"
G = MatrixGroup(n,GF(b, 2*a))
G.descr = :SU
Expand Down

0 comments on commit bd95ec2

Please sign in to comment.