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:
parent
6b9d2b5d28
commit
dad6576365
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user