mirror of
https://github.com/kalmarek/Groups.jl.git
synced 2024-12-25 02:05:30 +01:00
replace converts by constructors
This commit is contained in:
parent
77efcdff3e
commit
0286ca7c4d
@ -182,9 +182,7 @@ SAut(G::Group) = AutGroup(G, special=true)
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
function convert(::Type{Automorphism{N}}, s::AutSymbol) where N
|
||||
return Automorphism{N}(AutSymbol[s])
|
||||
end
|
||||
Automorphism{N}(s::AutSymbol) where N = Automorphism{N}(AutSymbol[s])
|
||||
|
||||
function (G::AutGroup{N})() where N
|
||||
id = Automorphism{N}(id_autsymbol())
|
||||
|
@ -88,6 +88,8 @@ parent(w::GWord{T}) where {T<:GSymbol} = w.parent
|
||||
###############################################################################
|
||||
|
||||
GroupWord(s::T) where {T<:GSymbol} = GroupWord{T}(T[s])
|
||||
GroupWord{T}(s::T) where {T<:GSymbol} = GroupWord{T}(T[s])
|
||||
GroupWord(w::GroupWord{T}) where {T<:GSymbol} = w
|
||||
convert(::Type{GroupWord{T}}, s::T) where {T<:GSymbol} = GroupWord{T}(T[s])
|
||||
|
||||
###############################################################################
|
||||
|
Loading…
Reference in New Issue
Block a user