Permutation group is iterable

This commit is contained in:
kalmarek 2018-09-24 00:30:18 +02:00
parent d85d7c76c6
commit bf97fc083b
1 changed files with 2 additions and 2 deletions

View File

@ -81,8 +81,8 @@ function GroupRingElem(c::AbstractVector, RG::GroupRing)
return GroupRingElem{eltype(c), typeof(c), typeof(RG)}(c, RG)
end
function GroupRing(G::Group; fastm::Bool=false)
return GroupRing(G, vec(collect(elements(G))), fastm=fastm)
function GroupRing(G::Generic.PermGroup; fastm::Bool=false)
return GroupRing(G, vec(collect(G)), fastm=fastm)
end
function GroupRing(G::Group, basis::Vector, pm::Array{Int,2})