1
0
mirror of https://github.com/kalmarek/Groups.jl.git synced 2024-12-25 18:15:29 +01:00

don't use length for permutation

This commit is contained in:
kalmarek 2018-08-01 22:39:43 +02:00
parent 6eebaf6945
commit 87a7285ba5

View File

@ -37,7 +37,7 @@ struct WreathProductElem{T<:GroupElem, I<:Integer} <: GroupElem
function WreathProductElem{T, I}(n::DirectProductGroupElem{T}, p::Generic.perm{I},
check::Bool=true) where {T, I}
if check
length(n.elts) == length(p) || throw(DomainError(
length(n.elts) == length(p.d) || throw(DomainError(
"Can't form WreathProductElem: lengths differ"))
end
return new(n, p)