move overwritten convert
This commit is contained in:
parent
ca2948404b
commit
8c930a6f7f
@ -11,6 +11,9 @@ import Nemo.elements
|
|||||||
using JLD
|
using JLD
|
||||||
using ProgressMeter
|
using ProgressMeter
|
||||||
|
|
||||||
|
import Base.convert
|
||||||
|
convert(::Type{Int}, x::Nemo.fmpz) = x.d
|
||||||
|
|
||||||
function products{T<:GroupElem}(X::AbstractVector{T}, Y::AbstractVector{T})
|
function products{T<:GroupElem}(X::AbstractVector{T}, Y::AbstractVector{T})
|
||||||
result = Vector{T}()
|
result = Vector{T}()
|
||||||
seen = Set{T}()
|
seen = Set{T}()
|
||||||
@ -151,9 +154,6 @@ function epsilon(i, g::DirectProducts.DirectProductGroupElem)
|
|||||||
return reduce(*, 1, ((-1)^isone(g.elts[j]) for j in 1:i))
|
return reduce(*, 1, ((-1)^isone(g.elts[j]) for j in 1:i))
|
||||||
end
|
end
|
||||||
|
|
||||||
import Base.convert
|
|
||||||
convert(::Type{Int}, x::Nemo.fmpz) = x.d
|
|
||||||
|
|
||||||
function central_projection(RG::GroupRing, char::Function, T::Type=Rational{Int})
|
function central_projection(RG::GroupRing, char::Function, T::Type=Rational{Int})
|
||||||
result = RG(T)
|
result = RG(T)
|
||||||
for g in RG.basis
|
for g in RG.basis
|
||||||
|
Loading…
Reference in New Issue
Block a user