make type of result of algebra_square depend on sqrt_matrix

This commit is contained in:
kalmar 2017-03-14 23:36:59 +01:00
parent f9fd7e63a7
commit b711615077
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ function EOI{T<:Number}(Δ::GroupAlgebraElement{T}, κ::T)
end
function algebra_square(vector, elt)
zzz = zeros(elt.coefficients)
zzz = zeros(eltype(vector), elt.coefficients)
zzz[1:length(vector)] = vector
# new_base_elt = GroupAlgebraElement(zzz, elt.product_matrix)
# return (new_base_elt*new_base_elt).coefficients