1
0
mirror of https://github.com/kalmarek/PropertyT.jl.git synced 2024-11-27 01:10:28 +01:00

better specialised groupring_square

This commit is contained in:
kalmar 2017-07-05 12:28:29 +02:00
parent 6b9d2b5d28
commit dad6576365

View File

@ -27,8 +27,8 @@ function EOI{T<:Number}(Δ::GroupRingElem{T}, λ::T)
return Δ*Δ - λ*Δ
end
function groupring_square(vect, elt)
zzz = zeros(eltype(vect), elt.coeffs)
function groupring_square(vect::Vector, elt::GroupRingElem)
zzz = zeros(eltype(vect), length(elt.coeffs))
zzz[1:length(vect)] = vect
return GroupRings.mul(zzz, zzz, parent(elt).pm)
end