mirror of
https://github.com/kalmarek/GroupRings.jl.git
synced 2025-01-01 03:40:29 +01:00
fix order of args
This commit is contained in:
parent
3da2110355
commit
a7683c6fcc
@ -61,12 +61,12 @@ function GroupRingElem{T<:Number}(c::AbstractVector{T}, A::GroupRing)
|
|||||||
end
|
end
|
||||||
|
|
||||||
convert{T<:Number}(::Type{T}, X::GroupRingElem) =
|
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})
|
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,1) == size(pm,2) || throw("pm must be of size (n,n), got
|
||||||
$(size(pm))")
|
$(size(pm))")
|
||||||
return GroupRing(Group, pm)
|
return GroupRing(G, pm)
|
||||||
end
|
end
|
||||||
|
|
||||||
function GroupRing(G::Group, pm::Array{Int,2}, basis::Vector)
|
function GroupRing(G::Group, pm::Array{Int,2}, basis::Vector)
|
||||||
|
Loading…
Reference in New Issue
Block a user