mirror of
https://github.com/kalmarek/GroupRings.jl.git
synced 2025-01-01 03:40:29 +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::Vector{GroupElem}
|
||||||
basis_dict::Dict{GroupElem, Int}
|
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
|
end
|
||||||
|
|
||||||
type GroupRingElem{T<:Number}
|
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)
|
return GroupRing(Group, pm, basis, basis_dict)
|
||||||
end
|
end
|
||||||
|
|
||||||
function GroupRing(G::Group; complete=false)
|
|
||||||
A = GroupRing(Group)
|
|
||||||
if complete
|
|
||||||
complete(A)
|
|
||||||
end
|
|
||||||
return A
|
|
||||||
end
|
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#
|
#
|
||||||
# Parent object call overloads
|
# Parent object call overloads
|
||||||
|
Loading…
Reference in New Issue
Block a user