mirror of
https://github.com/kalmarek/GroupRings.jl.git
synced 2024-12-29 11:00:28 +01:00
move the simplest GroupRing constructor to type definition
This commit is contained in:
parent
010fdb13a0
commit
917606af53
@ -17,7 +17,13 @@ type GroupRing <: Ring
|
||||
basis::Vector{GroupElem}
|
||||
basis_dict::Dict{GroupElem, Int}
|
||||
|
||||
GroupRing(G::Group) = new(G)
|
||||
function GroupRing(G::Group; full=false)
|
||||
A = new(G)
|
||||
if full
|
||||
complete(A)
|
||||
end
|
||||
return A
|
||||
end
|
||||
end
|
||||
|
||||
type GroupRingElem{T<:Number}
|
||||
@ -68,14 +74,6 @@ function GroupRing(G::Group, pm::Array{Int,2}, basis::Vector)
|
||||
return GroupRing(Group, pm, basis, basis_dict)
|
||||
end
|
||||
|
||||
function GroupRing(G::Group; complete=false)
|
||||
A = GroupRing(Group)
|
||||
if complete
|
||||
complete(A)
|
||||
end
|
||||
return A
|
||||
end
|
||||
|
||||
###############################################################################
|
||||
#
|
||||
# Parent object call overloads
|
||||
|
Loading…
Reference in New Issue
Block a user