fix order of args

This commit is contained in:
kalmar 2017-05-17 11:33:01 +02:00
parent 3da2110355
commit a7683c6fcc
1 changed files with 2 additions and 2 deletions

View File

@ -61,12 +61,12 @@ function GroupRingElem{T<:Number}(c::AbstractVector{T}, A::GroupRing)
end
convert{T<:Number}(::Type{T}, X::GroupRingElem) =
GroupRingElem(parent(X), convert(AbstractVector{T}, X.coeffs))
GroupRingElem(convert(AbstractVector{T}, X.coeffs), parent(X))
function GroupRing(G::Group, pm::Array{Int,2})
size(pm,1) == size(pm,2) || throw("pm must be of size (n,n), got
$(size(pm))")
return GroupRing(Group, pm)
return GroupRing(G, pm)
end
function GroupRing(G::Group, pm::Array{Int,2}, basis::Vector)